-
-
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
Implement sage -clean-residues #5977
Comments
comment:1
Whoever implements this needs to be aware that in Sage 3.4.2 and later DSage is no longer in the Sage library tree, but an external spkg that installs code into the site-package. So a special case needs to be implemented. I looked for another ticket that requests the same thing to be implemented, but I have not found it yet (should it exist). Cheers, Michael |
comment:2
This is quite important to get fixed since the new symbolics code will break the Sage startup otherwise. Cheers, Michael |
comment:3
Craig is going to do this later. If it isn't done in time for sage-4.0, we can include a single 1-line fix to spkg-install that completely deals with the problem for symbolics. Note that I have already included that fix in our branch, just in case. |
apply to repo in $SAGE_LOCAL/bin |
comment:4
Attachment: trac-5977-bin.patch.gz I've attached a patch to clean the build tree. It's really two patches: one for the The patch for the main repo simply removes two top-level imports of The code itself should be fairly readable, I think. I've written a little script called Mostly for testing purposes, I gave this three command-line arguments:
NOTES:
|
comment:5
Hah, I forgot to mention how to actually run the code. |
comment:6
I'm deleting the patch against the main repo: Mike Hansen has posted a much nicer patch at #6075. |
comment:7
I've tested and read through this a bit. Looks good to me. |
comment:8
Merged in 4.0.rc1 |
Add an option -clean-residues (or any better name) to the sage script to make it compare the list of .pyc files and .so files in the build directory with the list in the source directory. If a file has been removed in the source directory, delete the corresponding .pyc and .so files (or maybe even: if a file has been removed from version control, then wipe the .pyc/.so files, even if the actual file still exists in the source directory).
Optionally, if the overhead is negligible, call this automatically upon sage -b.
See discussion 'Test failing on "ImportError: cannot import name Set"...' around March 11 on sage-devel.
CC: @sagetrac-sage-combinat
Component: build
Keywords: cleanup
Issue created by migration from https://trac.sagemath.org/ticket/5977
The text was updated successfully, but these errors were encountered: