mirror of https://github.com/python/cpython
gh-90473: disable user site packages on WASI/Emscripten (GH-93633)
This commit is contained in:
parent
e974b3e333
commit
5a4af3ab03
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Emscripten and WASI have no home directory and cannot provide :pep:`370`
|
||||
user site directory.
|
Loading…
Reference in New Issue