gh-90473: disable user site packages on WASI/Emscripten (GH-93633)

(cherry picked from commit 5a4af3ab03)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Miss Islington (bot) 2022-06-09 09:12:51 -07:00 committed by GitHub
parent 2084f9479c
commit 4c41f21153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -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):

View File

@ -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):

View File

@ -0,0 +1,2 @@
Emscripten and WASI have no home directory and cannot provide :pep:`370`
user site directory.