summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-03-22 12:04:36 +0200
committerGitHub <noreply@github.com>2022-03-22 03:04:36 -0700
commitdeeaac49e267285158264643799624623f4a7b29 (patch)
tree27f409d7d43cf169451aa892a2363f1cac85f7df /setup.py
parenta25a985535ccbb7df8caddc0017550ff4eae5855 (diff)
downloadcpython-git-deeaac49e267285158264643799624623f4a7b29.tar.gz
bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)
- Add requires_fork and requires_subprocess to more tests - Skip extension import tests if dlopen is not available - Don't assume that _testcapi is a shared extension - Skip a lot of socket tests that don't work on Emscripten - Skip mmap tests, mmap emulation is incomplete - venv does not work yet - Cannot get libc from executable The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index c3cf2417bc..070ae9822b 100644
--- a/setup.py
+++ b/setup.py
@@ -84,10 +84,15 @@ CYGWIN = (HOST_PLATFORM == 'cygwin')
MACOS = (HOST_PLATFORM == 'darwin')
AIX = (HOST_PLATFORM.startswith('aix'))
VXWORKS = ('vxworks' in HOST_PLATFORM)
+EMSCRIPTEN = HOST_PLATFORM == 'emscripten-wasm32'
CC = os.environ.get("CC")
if not CC:
CC = sysconfig.get_config_var("CC")
+if EMSCRIPTEN:
+ # emcc is a Python script from a different Python interpreter.
+ os.environ.pop("PYTHONPATH", None)
+
SUMMARY = """
Python is an interpreted, interactive, object-oriented programming