-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Meta-ticket: Cython 3.0.0 (released July 2023) #29863
Comments
Changed keywords from none to upgrade |
comment:3
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
comment:13
pplpy build fails:
Last 10 new commits:
|
comment:14
|
comment:15
|
comment:16
|
comment:17
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
Help wanted with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:25
Replying to @mkoeppe:
|
Now that 3.0.0 is released, could we have this rebased and in a PR, please? |
Related: cython/cython#5552 |
Cf: https://github.com/tornaria/sage/tree/cython3-legacy, I've got as far as being able to cythonize everything, but some C files still fail to compile. First five commits are Note that cython/cython#5552 means cythonize fails if python package lxml is available. Can use Also: void-linux/void-packages#45086 includes patches for cysignals, cypari2, fpylll and pplpy that might be useful. |
After adding a commit fixing inheritance in Now it fails at
Please note: I'll probably keep rebasing and/or changing commits in my branch https://github.com/tornaria/sage/tree/cython3-legacy so don't take them as public commits unless you are willing to rebase. |
This is incorrect and it stems from a fundamental change in cython 3 that will probably bite us all over the place (and this one cannot be switched off afaict). I better link to the relevant section of the migration guide: https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html#class-private-name-mangling This means sagelib has been (mis)using So the way to fix all these "missing cdef ..." errors is not by adding the missing methods but renaming the members to use a single underscore which is the python way to declare a "private" member that is still inherited by subclasses (think "protected" in c++). |
<!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> Here are the changes needed to get Sage compiled with Cython 3. This PR contains changes that do not break compatibility with old Cython, so they can be merged without actually upgrading Cython. Part of sagemath#29863. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36109 Reported by: Yutao Yuan Reviewer(s): Gonzalo Tornaría, Yutao Yuan
This ticket is for experimenting with an update to Cython 3, which entered the beta stage on 2023-02-25 after several years in alpha. (No release schedule has been published.)
https://github.com/cython/cython/blob/master/CHANGES.rst
cdef
method declarations (for Cython 3)binding=True
to get signatures in help for cythonized built-in methodscython
: Eliminate use of custom patches__annotations__
) and coercion/categories/CythonSee also:
Depends on #26254
Depends on #32832
Depends on #34257
CC: @kwankyu @williamstein @videlec @tscrim @tobiasdiez
Component: packages: standard
Keywords: upgrade
Branch/Commit: u/mkoeppe/meta_ticket__cython_3_0_0__unreleased_ @
6c338f8
Issue created by migration from https://trac.sagemath.org/ticket/29863
The text was updated successfully, but these errors were encountered: