Skip to content
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

Lock Cython to 0.29.17 in Numpy recipe #834

Closed
wants to merge 1 commit into from

Conversation

jswillard
Copy link

cython 3.0.0 was released yesterday and building numpy < 1.25.0 is not supported with cython 3.0 or newer. Without locking to a specific cython version, pip will grab the latest and numpy will fail to build.

I'm relatively new to using Kivy, so there may be a better way to accomplish this than changing the recipe file.

@@ -11,7 +11,7 @@ class NumpyRecipe(CythonRecipe):
libraries = ["libnpymath.a", "libnpyrandom.a"]
include_dir = "numpy/core/include"
depends = ["python"]
hostpython_prerequisites = ["Cython"]
hostpython_prerequisites = ["Cython==0.29.17"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we support lower than <

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled the version for Cython from requirements.txt in the root of the repo, if there's a different version that should be locked to such as the latest build from v0.29 (0.29.36) that would make sense to me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On CI pipeline we use Cython==0.29.33, requirements.txt have Cython==0.29.17, on setup.cfg is unpinned, and on hostpython_prerequisites is also unpinned.

@jswillard what about pinning 0.29.36 everywhere? (for now, see: kivy/buildozer#1637 for full story)

CI fails on this PR as numpy complains about the following:
RuntimeError: Building NumPy requires Cython >= 0.29.30

@misl6
Copy link
Member

misl6 commented Aug 22, 2023

Fixed via #844

@misl6 misl6 closed this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants