File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,11 +49,14 @@ archs = ["native"]
4949# Pass LLVM_VERSION from the host environment to cibuildwheel.
5050environment-pass = [" LLVM_VERSION" ]
5151# We use miniconda3 to get the clang/llvm toolchain on Linux.
52- before-build = [" rm -rf build dist src/*.egg-info" ]
52+ before-build = [
53+ " rm -rf build dist src/*.egg-info" ,
54+ # llvmlite needs setuptools < 82 to build from source, if needed. Create a
55+ # constraints file used by PIP_CONSTRAINT to enforce this in isolated
56+ # builds.
57+ " echo 'setuptools<82' > /tmp/constraints.txt" ,
58+ ]
5359skip = [" *-musllinux_*" , " cp38-*" ]
54- # llvmlite needs setuptools < 82, and we may need to build from source, so we
55- # ensure that setuptools is in the correct version range.
56- test-requires = [" setuptools>=75.3,<82" ]
5760test-command = [
5861 # Run host OpenMP tests.
5962 " TEST_DEVICES=0 RUN_TARGET=0 python -m numba.runtests -v -- numba.openmp.tests.test_openmp" ,
@@ -64,6 +67,8 @@ test-command = [
6467[tool .cibuildwheel .environment ]
6568USE_CXX11_ABI = " 1"
6669PIP_NO_INPUT = " 1"
70+ # Enforce setuptools version even in isolated builds for llvmlite compatibility.
71+ PIP_CONSTRAINT = " /tmp/constraints.txt"
6772
6873[tool .cibuildwheel .linux ]
6974before-all = [
You can’t perform that action at this time.
0 commit comments