-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Run sage -ba instead of sage -b after upgrading Cython #4797
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
I can live with this issue being fixed in 3.3 since we will not upgrade Cython in 3.2.2->3.2.3. Cheers, Michael |
comment:4
Ooops. Reassigned this time :) Cheers, Michael |
comment:5
Does anybody have any idea how to implement this? Here is one idea. We make it so there is a command like "sage -ba" that doesn't actually rebuild the sage library, then we make the cython spkg-install call that command. It could be called "sage -ba_nobuild" or something. This is way better, I think, than "sage -ba" trying to detect if cython was upgraded. The disadvantage is that it might make testing installing the cython SPKG inconvenient. |
comment:6
Yes, this would make testing Cython spkgs a major pain. I think this probably best belongs in the upgrade script--it could touch all .pyx files after upgrading the Cython script. |
comment:7
Yes and no. When I test Cython releases I delete the build tree and then do a -ba anyway since that is the only reliable way to test. Obviously if someone is testing "just" the spkg this ought to be not enforced, so RobertWB's idea seems the way to go. Cheers, Michael |
comment:8
Yep, when you test a Cython release (assuming I've done my job) it should just work. That's different when I'm hunting down a bug and want to keep re-compiling a certain file (e.g. that last memory leak). |
comment:9
If we've released for months and months without fixing this, it doesn't make sense to keep it as a blocker. |
Changed keywords from none to upgrade cython |
This comment has been minimized.
This comment has been minimized.
comment:11
This is just due to missing dependencies in At least for upgrades to final versions, this should IMHO never be necessary. |
comment:12
P.S.: Explicitly touching some files in |
This comment has been minimized.
This comment has been minimized.
comment:13
Replying to @nexttime:
I created ticket #10124 to implement this. |
comment:15
Running We just have to make any Cython file / extension module depend on a single, distinct file of the Cython distribution (e.g. header) and preferably make sure this is only touched when really necessary. Therefore it would make sense to use a Sage-specific file for such, which is created and managed by our People upgrading the Cython package will best know if a complete rebuild will be necessary, depending on the Cython version found in the current installation subject to upgrade. |
Reviewer: Jeroen Demeyer |
comment:16
Closing this since I haven't seen this problem at all recently. |
We should really run
sage -ba
when we upgrade Cython and not justsage -b
.CC: @robertwb
Component: build
Keywords: upgrade cython
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/4797
The text was updated successfully, but these errors were encountered: