From 1b845f728c1102e4be2cb8c86b2ceaf51df961eb Mon Sep 17 00:00:00 2001 From: ada Date: Fri, 19 Jun 2026 11:17:57 -0500 Subject: [PATCH 1/2] Fixup pip usage --- .nanvix/z.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.nanvix/z.py b/.nanvix/z.py index 12b145e..b7b4ac4 100644 --- a/.nanvix/z.py +++ b/.nanvix/z.py @@ -693,23 +693,7 @@ def _cleanup_initrd(self) -> None: def _install_site_packages(self, site_pkg: Path) -> None: """Install pip packages from requirements files into *site_pkg*.""" - pip_cmd: list[str] | None = None - toolchain = self._toolchain_str() - - if shutil.which("pip3"): - pip_cmd = ["pip3"] - elif Path(toolchain, "bin", "pip3").is_file(): - pip_cmd = [str(Path(toolchain, "bin", "pip3"))] - elif shutil.which("python3"): - pip_cmd = ["python3", "-m", "pip"] - elif shutil.which("python"): - pip_cmd = ["python", "-m", "pip"] - elif Path(toolchain, "bin", "python3").is_file(): - pip_cmd = [str(Path(toolchain, "bin", "python3")), "-m", "pip"] - else: - log.warning("pip not found; skipping site-packages installation") - return - + pip_cmd = [sys.executable, "-m", "pip"] req_dir = repo_root() / "requirements" # Compute a combined hash of all requirements files so we can @@ -741,6 +725,7 @@ def _install_site_packages(self, site_pkg: Path) -> None: str(req_path), ], capture_output=True, + check=True, ) # Remove native .so/.pyd files (not usable on Nanvix) From 8185692fcb9d1b51c317839142b2dfdd2d06ea48 Mon Sep 17 00:00:00 2001 From: Phoenix Mandala Date: Fri, 19 Jun 2026 11:52:17 -0500 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .nanvix/z.py | 1 - 1 file changed, 1 deletion(-) diff --git a/.nanvix/z.py b/.nanvix/z.py index b7b4ac4..c4dfdf4 100644 --- a/.nanvix/z.py +++ b/.nanvix/z.py @@ -724,7 +724,6 @@ def _install_site_packages(self, site_pkg: Path) -> None: "-r", str(req_path), ], - capture_output=True, check=True, )