summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-02-06 23:03:48 -0800
committerGitHub <noreply@github.com>2021-02-06 23:03:48 -0800
commit39c79f38546bf27fc88f991675d3f0f78710a594 (patch)
tree812d9c73fde089672a48e26f1ca9ba185370eb95
parent411390d1362aa77e57dad856bcc061449bf183c6 (diff)
parentdf1647e5fe5295e425cd437f47f6fdb63b181420 (diff)
downloadmarkupsafe-39c79f38546bf27fc88f991675d3f0f78710a594.tar.gz
Merge pull request #184 from pallets/pypy-no-speedups
don't build speedups on PyPy with cibuildwheel
-rw-r--r--setup.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 2a8743f..c6ee5bf 100644
--- a/setup.py
+++ b/setup.py
@@ -52,9 +52,11 @@ def show_message(*lines):
print("=" * 74)
-if os.environ.get("CIBUILDWHEEL", "0") == "1":
+supports_speedups = platform.python_implementation() not in {"PyPy", "Jython"}
+
+if os.environ.get("CIBUILDWHEEL", "0") == "1" and supports_speedups:
run_setup(True)
-elif platform.python_implementation() not in {"PyPy", "Jython"}:
+elif supports_speedups:
try:
run_setup(True)
except BuildFailed: