From 9e19b93e2e451653ce2dff6d92cd85a8598250c2 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 23 Jan 2024 14:47:05 -0800 Subject: [PATCH] Revert "`pyodide_build.out_of_tree.venv`: Monkey-patch `platform.system` for pip" --- pyodide-build/pyodide_build/out_of_tree/venv.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyodide-build/pyodide_build/out_of_tree/venv.py b/pyodide-build/pyodide_build/out_of_tree/venv.py index ddfc8be11..6fc9db40a 100644 --- a/pyodide-build/pyodide_build/out_of_tree/venv.py +++ b/pyodide-build/pyodide_build/out_of_tree/venv.py @@ -101,7 +101,6 @@ def get_pip_monkeypatch(venv_bin: Path) -> str: return dedent( """\ import os - import platform import sys """ # when pip installs an executable it uses sys.executable to create the @@ -122,7 +121,6 @@ def get_pip_monkeypatch(venv_bin: Path) -> str: orig_platform = sys.platform sys.platform = sys_platform sys.implementation._multiarch = multiarch - platform.system = lambda: sys_platform os.environ["_PYTHON_HOST_PLATFORM"] = host_platform os.environ["_PYTHON_SYSCONFIGDATA_NAME"] = f'_sysconfigdata_{{sys.abiflags}}_{{sys.platform}}_{{sys.implementation._multiarch}}' sys.path.append("{sysconfigdata_dir}")