Skip to content

Commit

Permalink
Try setting micropip install constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Feb 13, 2025
1 parent e39ec4a commit 8ccd229
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/makelock.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ micropip.set_index_urls([
"https://pypi.org/pypi/{package_name}/json",
])
micropip.set_constraints([
c for c in """${requirements}""".splitlines()
if len(c) > 0 and not c.startswith('#')
])
await micropip.install([
r for r in """${requirements}""".splitlines()
if len(r) > 0 and not r.startswith('#')
Expand Down

0 comments on commit 8ccd229

Please sign in to comment.