Skip to content

Commit 6446a0b

Browse files
committed
pyx.build: Fix build after Cython 3 release
Unfortunately the best Cython release ever[1] breaks build for Pygolang[2], and people on the net also report that there are other problems - both build failures and popped up performance problems due to changed semantic[3,4,...]. Fix it all on Pygolang side by, for now, not delving into being Cython 3 beta-testers and relying on field-proven Cython 2. /reported-by @levin.zimmermann [1] https://groups.google.com/g/cython-users/c/o41CrcRkVvo [2] https://lab.nexedi.com/nexedi/wendelin.core/merge_requests/16#note_188623 [3] https://news.ycombinator.com/item?id=36778617 [4] cython/cython#5540
1 parent 31fc695 commit 6446a0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "setuptools_dso >= 2.8", "cython", "gevent"]
2+
requires = ["setuptools", "wheel", "setuptools_dso >= 2.8", "cython < 3", "gevent"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def install_egg_scripts(self, dist):
155155
# requirements of packages under "golang." namespace
156156
R = {
157157
'cmd.pybench': {'pytest'},
158-
'pyx.build': {'setuptools', 'wheel', 'cython', 'setuptools_dso >= 2.8'},
158+
'pyx.build': {'setuptools', 'wheel', 'cython < 3', 'setuptools_dso >= 2.8'},
159159
'x.perf.benchlib': {'numpy'},
160160
}
161161
# TODO generate `a.b -> a`, e.g. x.perf = join(x.perf.*); x = join(x.*)

0 commit comments

Comments
 (0)