From 3284ceb0a003aa3e17c8bccf83bda4174718413e Mon Sep 17 00:00:00 2001 From: Juniper Tyree <50025784+juntyr@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:37:57 +0000 Subject: [PATCH] Fix handling PyPi dependencies in requirements.py --- tools/requirements.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/requirements.py b/tools/requirements.py index bf6095341..db40853a5 100644 --- a/tools/requirements.py +++ b/tools/requirements.py @@ -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" @@ -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: