-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
build/make/Makefile.in: Rename make targets SPKG-clean to SPKG-uninstall #29097
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dependencies: #29793 |
comment:6
There is no reason for any deprecation here, is there? I have a branch that I'm testing out now to do the change "clean -> uninstall", but not the new phony targets |
Branch: u/jhpalmieri/clean2uninstall |
comment:8
Here is a branch to test out. I wasn't sure about the instruction when docbuilding fails:
There could be artifacts that New commits:
|
Commit: |
comment:9
Right now
That way the targets wind up with the right names, and the suggestion doesn't effectively change. NB: in this hunk the doc-src-clean was dropped (I don't know which is correct):
|
comment:10
Replying to @orlitzky:
My only reluctance is that I am very used to typing
This should be okay: the reason to clean the docs when toggling |
comment:11
For the Are |
This comment has been minimized.
This comment has been minimized.
comment:13
The inventory files are intended to allow for cross-references among different pieces of the documentation: see https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html and According to https://www.sphinx-doc.org/en/master/man/sphinx-build.html, the doctrees are used to cache the parsed source files before writing output. Once the output has been written, they aren't needed, so I guess they could be moved somewhere else, and I'm guessing the same for the inventory files, but I think they are all needed when building the docs. |
This comment has been minimized.
This comment has been minimized.
comment:17
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date. |
This comment has been minimized.
This comment has been minimized.
comment:33
Ah, but I can probably do better |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:36
Thank you for the explanation and the new target; that now makes sense. Not from this branch: I don't understand Regarding this change in
Is the point that we now have two possible locations for the installation files, either SAGE_LOCAL or SAGE_VENV, so we can't use the single variable Otherwise things look good. |
comment:37
And if you're going to fix the comment about environment variables, maybe also fix the docstring for the function to not refer to just |
comment:38
Replying to @jhpalmieri:
Yes.
Thanks, I'll fix that |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:41
Replying to @jhpalmieri:
Done, please take a look |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: John Palmieri |
comment:43
Looks good to me. I don't have access to my usual computer so I can't push to trac right now. If you feel like fixing it, there is a typo: diff --git a/build/sage_bootstrap/uninstall.py b/build/sage_bootstrap/uninstall.py
index feb91ead158..1ce039921fc 100644
--- a/build/sage_bootstrap/uninstall.py
+++ b/build/sage_bootstrap/uninstall.py
@@ -51,7 +51,7 @@ PKGS = pth.join(SAGE_ROOT, 'build', 'pkgs')
def uninstall(spkg_name, sage_local, keep_files=False, verbose=False):
"""
- Given a package name and path to an installation tree (SAGE_LOCAL or SAGE_VENV,
+ Given a package name and path to an installation tree (SAGE_LOCAL or SAGE_VENV),
uninstall that package from that tree if it is currently installed.
"""
|
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:45
Thank you! |
Changed reviewer from John Palmieri to Matthias Koeppe, John Palmieri |
Changed branch from u/mkoeppe/clean2uninstall to |
Cleaning means to remove build artifacts from the directory
@builddir@
(= SAGE_ROOT).But these targets uninstall packages from
@prefix@=$SAGE_LOCAL
.Hence we rename
SPKG-clean
targets toSPKG-uninstall
(but keepSPKG-clean
as an alias.) This also unifies the targets between normal and script packages (the latter used-uninstall
already).We also add implicit rules that allow users to uninstall packages that no longer exist in the source tree. This is preparation for #34203. To test this, switch to the branch of #33530 and build one of the packages added, for example
make fastjsonschema
. Switch back to currentdevelop
and try to remove it (does not work). Switch to the branch here and runmake fastjsonschema-uninstall
(works).Related:
make doc-uninstall
make doc-clean
should remove inventory, doctreessage-spkg
sage-doc-html
,sage-doc-pdf
CC: @dimpase @embray @jhpalmieri @seblabbe @orlitzky @haraldschilly
Component: build
Author: John Palmieri, Matthias Koeppe
Branch/Commit:
72695aa
Reviewer: Matthias Koeppe, John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/29097
The text was updated successfully, but these errors were encountered: