Skip to content

Commit f49bcd3

Browse files
committed
need latest Cython for stable abi wheels
1 parent 3bc8816 commit f49bcd3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ env:
2727
FORCE_COLOR: "1"
2828
# only affects Windows, but easiest to set here for now
2929
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"
30+
# don't compile Cython if we are building from source
31+
NO_CYTHON_COMPILE: "true"
3032

3133
jobs:
3234
test:

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ install.components = ["pyzmq"]
6363
if.env.PYZMQ_BACKEND = "cffi"
6464
build.requires = ["cffi"]
6565

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+
6671
[tool.ruff]
6772

6873
[tool.ruff.format]
@@ -152,6 +157,9 @@ test-requires = ["pytest>=6", "importlib_metadata"]
152157
test-command = "pytest -vsx {package}/tools/test_wheel.py"
153158
build-frontend = "build"
154159

160+
[tool.cibuildwheel.environment]
161+
NO_CYTHON_COMPILE = "true"
162+
155163
[tool.cibuildwheel.linux]
156164
before-all = "bash tools/install_libzmq.sh"
157165
manylinux-x86_64-image = "manylinux2014"
@@ -211,12 +219,16 @@ config-settings."wheel.py-api" = "cp311"
211219
inherit.repair-wheel-command = "append"
212220
before-build = "pip install abi3audit"
213221
repair-wheel-command = "abi3audit --strict --report {wheel}"
222+
inherit.environment="append"
223+
environment = {PYZMQ_LATEST_CYTHON="1"}
214224

215225
# for benchmarking, build limited cp312 as well
216226
[[tool.cibuildwheel.overrides]]
217227
select = "cp312-*"
218228
inherit.config-settings = "append"
219229
config-settings."wheel.py-api" = "cp312"
230+
inherit.environment="append"
231+
environment = {PYZMQ_LATEST_CYTHON="1"}
220232

221233
# note: manylinux_2_28 builds are added
222234
# in .github/workflows/wheels.yml

0 commit comments

Comments
 (0)