summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-09 15:45:29 (GMT)
committerGitHub <noreply@github.com>2022-06-09 15:45:29 (GMT)
commit5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360 (patch)
tree244779a03c19dc48253922057f770483b9a7c033 /Lib
parente974b3e333c9827551d434661a99d990263bf915 (diff)
downloadcpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.zip
cpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.tar.gz
cpython-5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360.tar.bz2
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/site.py4
-rw-r--r--Lib/sysconfig.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/site.py b/Lib/site.py
index b11cd48..69670d9 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -266,8 +266,8 @@ def _getuserbase():
if env_base:
return env_base
- # VxWorks has no home directories
- if sys.platform == "vxworks":
+ # Emscripten, VxWorks, and WASI have no home directories
+ if sys.platform in {"emscripten", "vxworks", "wasi"}:
return None
def joinuser(*args):
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index e21b730..bf926cf 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -111,8 +111,8 @@ def _getuserbase():
if env_base:
return env_base
- # VxWorks has no home directories
- if sys.platform == "vxworks":
+ # Emscripten, VxWorks, and WASI have no home directories
+ if sys.platform in {"emscripten", "vxworks", "wasi"}:
return None
def joinuser(*args):