New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Cython 0.29.31 release breaks building SciPy from source #16723
Comments
Actually the SymPy CI job which runs with Cython master and SciPy main now seems to have passed. I'm not sure if that is because of a change/fix in either Cython or SciPy. It does look there are other issues in the Cython tracker related to the 0.29.31 release breaking some code that uses memoryviews so maybe this is a Cython bug. Probably though SciPy should pin the Cython version more tightly. I don't immediately see a way to force SciPy 1.8.1 to build with |
I've opened a Cython issue: cython/cython#4928 |
Thanks. Maybe this can be closed then. Two questions though:
|
The Cython issue itself looks like it will be fixed by cython/cython#4929 which I guess will go into a Cython 0.29.32 release. |
We'll backport the fix to
Unfortunately, not in an isolated build. So |
The best I've found is: $ echo 'cython!=0.29.31' > constraints.txt
$ PIP_CONSTRAINT=constraints.txt pip install scipy You have to use the environment variable (rather than a command line argument) so that it passes through to the subprocess that actually installs these in the isolated build. |
Nice - that is better than nothing:) |
Given that 0.29.32 was released, is this still necessary? |
This is fixed on both ends of the line now, so can be closed. |
Describe your issue.
This comes from failures seen in SymPy CI:
sympy/sympy#23847
The release of Cython 0.29.31 means that building SciPy from source with pip fails both with the latest release SciPy 1.8.1 and also the main branch.
It looks like pyproject.toml on the 1.8.x branch needs to have a better upper bound for the Cython version since it only requires
<3.0
which does not prevent new releases in Cython's0.29.x
series from breaking the build:scipy/pyproject.toml
Lines 1 to 14 in b76137f
Reproducing Code Example
Error message
SciPy/NumPy/Python version information
SciPy 1.8.1 and current main, numpy 1.23.1, Any version of Python or PyPy (I think), Cython 0.29.31
The text was updated successfully, but these errors were encountered: