-
Notifications
You must be signed in to change notification settings - Fork 255
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
Force cython 2.x #665
Force cython 2.x #665
Conversation
These But, we all agree that Instead, an approach, similar to the one we currently use on https://github.com/kivy/pyobjus/blob/9d66904623df5e0772dad807a6a14c340f22fc9e/setup.py#L122-L128 (Tests are passing on Cython 3.x, so IMHO there's no need to force Cython 0.x) Yeah, have a lot of deprecation warnings, but that will be a slow migration process for the whole Python community. |
Are you sure that tests and installation is passing/working on Cython 3? Its definitely not my recent experience, even on the Github Actions for this PR. I'm happy to revert setup.py if we are forcing old Cython.
I think your point is to use a depends= kwarg to declare the .pxi files, right? |
Any thoughts @misl6 ? |
Yes.
I've tested it locally by using the |
I have added I, respectfully, disagree with the assessment on Cython 3. I have separated that into a separate PR (#669), based on this PR, for which the github actions are failing. |
Closing this PR in favour of #669. |
As noted in #663, Jnius does not build currently. This is because of the release last month of Cython 3.0.
There are two issues:
(1) Cython 3.0 wont compile include files (.pxi). I have excluded these
(2) Jnius compiled using Cython 3.0 fails with
AttributeError: 'Class' object has no attribute '_JavaClass__cls_storage'
. I cant easily see why this is occurring.I think we should do a new 1.5.1 release as soon as possible using this PR, as anyone installing Jnius in an environment without prebuilt binaries will currently not succeed. Pegging to Cython <3.0 will address the main problem for now. We can create another issue for Cython 3 support.