-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
python311Packages.cython: restrict patch to python versions where the API exists #198302
Conversation
Can you apply cython/cython@e337825 atop the currently-applied patch instead of removing it? It effectively reverts the changes in The observable effect of removing the patch would be stack overflows when running Sage tests, with backtraces similar to the one in https://trac.sagemath.org/ticket/27267. |
For reference, the original patch (the one that would be removed if this PR were merged right now) was committed as cython/cython@f781880. I'm pointing this out because the patch is currently fetched from Sage's repository, which might make code archaeology unnecessarily hard. Since the 2019 date on the above commit may be surprising, note that both patches were committed to Cython master, which eventually will become Cython 3.0. Since November 2018, Cython releases come from the |
I thought it was uppercase |
You'll probably want to target @ofborg build python311Packages.cypari2 |
ofBorg looks at the commit title, not at the PR title. It will automatically trigger a new build on push (even force pushes). |
54f0e6d
to
9499270
Compare
Added the second patch as you suggested. I'm also pulling in both of them from the official repo, let me know/revert the lines if you'd prefer to leave the old one as it is. @ofborg build python311Packages.skia-pathops |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've extended the comment a bit, but I am happy with this change if it fixes the skia-pathops problem. Please switch the target branch to staging
, though.
Done and done :) |
Great, many thanks for updating the patches! And thanks for pinging me in the first place, I probably would have missed it. Let's wait for the Cython maintainer's approval, but please ping me if that hasn't happened in a reasonable timeframe (a week, say). |
fails to build:
|
@SuperSandro2000 Thanks for the heads up! I tested cypari2 out of an abundance of caution, but it turns out to be incompatible with Python 3.11 for reasons unrelated to this PR (sagemath/cypari2#114). It was fixed upstream (sagemath/cypari2#120), but I think we can afford to wait for a new cypari2 release since Python 3.11 is opt-in in Nixpkgs for now. Either way, the compilation problem is caused solely by Python 3.11 and not by this PR. |
@ofborg build python311Packages.cython |
This doesn't actually cause
python311Packages.Cython
to fail it's build butpython311Packages.skia-pathops
Description of changes
Cython used internal python APIs for a while, but that was removed at some point. We added a patch to add that back in in e69d0a0 but since the API was removed in python3.11 we cannot use the patch anymore.
I can't confidently say I understand why the patch was added so I don't want to speak on whether it is still needed, but since it doesn't work on python3.11 we should probably merge this?
Pinging
Things done
Only use the patch on python version <=3.11
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes