Revert "`pyodide_build.out_of_tree.venv`: Monkey-patch `platform.system` for pip"

This commit is contained in:
Hood Chatham 2024-01-23 14:47:05 -08:00 committed by GitHub
parent 53f9faa9f2
commit 9e19b93e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -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}")