summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-01-29 15:00:45 -0800
committerDavid Lord <davidism@gmail.com>2021-01-29 15:00:45 -0800
commitcdeec5314574c239290a5432c55cb3a195010ecb (patch)
tree91f64d3b99fb7148a256e117f2d0d8f28e33fb07
parentfff7934929be0d889685f33dae6f3f3b0f6d76c8 (diff)
downloadmarkupsafe-1.1.x.tar.gz
always build extension in cibuildwheel env1.1.x1.1.x
-rw-r--r--setup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 8f9476a..4a5a30e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
from __future__ import print_function
import io
+import os
import re
import sys
from distutils.errors import CCompilerError
@@ -95,7 +96,9 @@ def show_message(*lines):
print("=" * 74)
-if not (is_pypy or is_jython):
+if os.environ.get("CIBUILDWHEEL", "0") == "1":
+ run_setup(True)
+elif not (is_pypy or is_jython):
try:
run_setup(True)
except BuildFailed: