Skip to content

Commit

Permalink
Revert "Don't restore sys.platform in venv.py"
Browse files Browse the repository at this point in the history
This reverts commit 1b23ebb.
  • Loading branch information
hoodmane committed Feb 22, 2025
1 parent 1b23ebb commit be6bf27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyodide_build/out_of_tree/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def platform_tags():
f"""
os_name, sys_platform, platform_system, multiarch, host_platform = {platform_data}
os.name = os_name
orig_platform = sys.platform
sys.platform = sys_platform
sys.platlibdir = "lib"
sys.implementation._multiarch = multiarch
Expand All @@ -152,6 +153,7 @@ def platform_tags():
import sysconfig
sysconfig._init_config_vars()
del os.environ["_PYTHON_SYSCONFIGDATA_NAME"]
sys.platform = orig_platform
"""
)

Expand Down

0 comments on commit be6bf27

Please sign in to comment.