From 5a4af3ab030a3f3e708ee83d7d4ca3cb2d5b7360 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 9 Jun 2022 17:45:29 +0200 Subject: gh-90473: disable user site packages on WASI/Emscripten (GH-93633) --- Lib/sysconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/sysconfig.py') diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index e21b7303fe..bf926cf768 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): -- cgit v1.2.1