Skip to content

Pin Cython<3.3 for pyzmq source-build compat (3007.x) - #70119

Open
dwoz wants to merge 1 commit into
saltstack:3007.xfrom
dwoz:dwoz/fix/cython-3.3-pin-3007x
Open

Pin Cython<3.3 for pyzmq source-build compat (3007.x)#70119
dwoz wants to merge 1 commit into
saltstack:3007.xfrom
dwoz:dwoz/fix/cython-3.3-pin-3007x

Conversation

@dwoz

@dwoz dwoz commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

What broke

Cython 3.3.0 (published to PyPI 2026-08-22) rejects two variable redeclarations in pyzmq's Cython source:

zmq/backend/cython/_zmq.py:357:8: 'hint' redeclared
zmq/backend/cython/_zmq.py:1112:12: 'c_addr' redeclared

pyzmq's [build-system].requires pulls cython unpinned, so every PEP 517 source build of pyzmq (--no-binary=:all: onedir path in tools/pkg/build.py) pulls Cython 3.3.0 and fails. PIP_CONSTRAINT is already set to requirements/constraints.txt and (per pip docs) still propagates to PEP 517 build envs on pip <26.2.

Fix

Add Cython < 3.3 to requirements/constraints.txt. Build tooling only — no runtime deps or lock files change (Cython is a build-only dep, uv-pip-compile does not record it).

Scope

  • requirements/constraints.txt: +7 lines (comment + pin)
  • changelog/70119.fixed.md

No runtime code touched.

Cross-branch

Same fix on all active branches:

@dwoz
dwoz requested a review from a team as a code owner August 22, 2026 22:44
@dwoz
dwoz force-pushed the dwoz/fix/cython-3.3-pin-3007x branch from 362430c to 5f51fb2 Compare August 22, 2026 22:45
@dwoz dwoz added the test:full Run the full test suite label Aug 22, 2026
@dwoz dwoz added this to the Chlorine v3007.15 milestone Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant