@@ -63,6 +63,11 @@ install.components = ["pyzmq"]
63
63
if.env.PYZMQ_BACKEND = " cffi"
64
64
build.requires = [" cffi" ]
65
65
66
+ [[tool .scikit-build .overrides ]]
67
+ if.any.env.PYZMQ_LATEST_CYTHON = true
68
+ build.requires = [" cython @ https://github.com/cython/cython/archive/HEAD.tar.gz" ]
69
+
70
+
66
71
[tool .ruff ]
67
72
68
73
[tool .ruff .format ]
@@ -152,6 +157,9 @@ test-requires = ["pytest>=6", "importlib_metadata"]
152
157
test-command = " pytest -vsx {package}/tools/test_wheel.py"
153
158
build-frontend = " build"
154
159
160
+ [tool .cibuildwheel .environment ]
161
+ NO_CYTHON_COMPILE = " true"
162
+
155
163
[tool .cibuildwheel .linux ]
156
164
before-all = " bash tools/install_libzmq.sh"
157
165
manylinux-x86_64-image = " manylinux2014"
@@ -211,12 +219,16 @@ config-settings."wheel.py-api" = "cp311"
211
219
inherit.repair-wheel-command = " append"
212
220
before-build = " pip install abi3audit"
213
221
repair-wheel-command = " abi3audit --strict --report {wheel}"
222
+ inherit.environment =" append"
223
+ environment = {PYZMQ_LATEST_CYTHON =" 1" }
214
224
215
225
# for benchmarking, build limited cp312 as well
216
226
[[tool .cibuildwheel .overrides ]]
217
227
select = " cp312-*"
218
228
inherit.config-settings = " append"
219
229
config-settings."wheel.py-api" = " cp312"
230
+ inherit.environment =" append"
231
+ environment = {PYZMQ_LATEST_CYTHON =" 1" }
220
232
221
233
# note: manylinux_2_28 builds are added
222
234
# in .github/workflows/wheels.yml
0 commit comments