mirror of https://github.com/pyodide/pyodide.git
Revert "`pyodide_build.out_of_tree.venv`: Monkey-patch `platform.system` for pip"
This commit is contained in:
parent
53f9faa9f2
commit
9e19b93e2e
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue