Skip to content

Commit

Permalink
Fix handling PyPi dependencies in requirements.py
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Feb 16, 2025
1 parent 0f6524b commit 3284ceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

lock_path = Path("pyodide") / "dist" / "pyodide-lock.json"
recipe_path = Path("pyodide") / "packages"
recipes_path = Path("pyodide") / "packages"

requirements_path = Path("venv") / "requirements.txt"
requirements_in_path = Path("venv") / "requirements.in"
Expand Down Expand Up @@ -63,10 +63,10 @@ class Package:

is_pure = False

recipe_path = recipe_path / package["name"] / "meta.yaml"
recipe_path = recipes_path / package["name"] / "meta.yaml"

if recipe_path.exists():
with open(recipe_path / package["name"] / "meta.yaml") as f:
with recipe_path.open() as f:
recipe = yaml.load(f, yaml.SafeLoader)

try:
Expand Down

0 comments on commit 3284ceb

Please sign in to comment.