-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
"make doc-clean" should remove inventory, doctrees #33705
Comments
comment:1
A related change that may be taken care of, if we follow the proposal on this ticket: diff --git a/build/make/Makefile.in b/build/make/Makefile.in
index d42b261b3d..75bfa250df 100644
--- a/build/make/Makefile.in
+++ b/build/make/Makefile.in
@@ -340,9 +340,9 @@ doc-html: sagemath_doc_html
# 'doc-html-no-plot': build docs without building the graphics coming
# from the '.. plot' directive, in case you want to save a few
-# megabytes of disk space. 'doc-clean' is a prerequisite because the
+# megabytes of disk space. 'doc-uninstall' is a prerequisite because the
# presence of graphics is cached in src/doc/output.
-doc-html-no-plot: doc-clean
+doc-html-no-plot: doc-uninstall
+$(MAKE_REC) SAGE_DOCBUILD_OPTS="$(SAGE_DOCBUILD_OPTS) --no-plot" doc-html
# Using mathjax is actually the only options, but we keep |
comment:2
For typical Sage packages, what is the difference between |
comment:3
For normal Sage packages, There's not really much to clean because the build tree for a package is ephemeral - unless |
comment:5
We can do this: diff --git a/src/doc/Makefile b/src/doc/Makefile
index 62fb1cafd18..9bf9a1686dc 100644
--- a/src/doc/Makefile
+++ b/src/doc/Makefile
@@ -16,6 +16,8 @@ clean:
rm -rf en/reference/*/sage
rm -rf en/reference/sage
rm -f common/*.pyc
+ rm -rf ../../local/share/doc/sage/inventory
+ rm -rf ../../local/share/doc/sage/doctrees
# Sources generated at build time. (For sources generated at bootstrap time, see bootstrap.)
doc-src: I'm not sure how to do this more cleanly without moving the |
Author: John Palmieri |
Commit: |
comment:7
Ready for review. I don't think we need the change from comment:1, but it does raise a question: if I run
Do New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:9
(Ignore the first bunch of commits. I think this should just be based on |
Dependencies: #29097 |
comment:11
Oh, OK |
Changed dependencies from #29097 to none |
comment:12
Replying to @jhpalmieri:
You can use |
comment:13
Also, |
comment:14
Why is diff --git a/Makefile b/Makefile
index 88107dbb37..e4d36a0308 100644
--- a/Makefile
+++ b/Makefile
@@ -98,13 +98,14 @@ pypi-sdists: sage_setup
SAGE_ROOT = $(CURDIR)
SAGE_SRC = $(SAGE_ROOT)/src
+SAGE_LOCAL = $(SAGE_ROOT)/local
clean:
@echo "Deleting package build directories..."
if [ -f "$(SAGE_SRC)"/bin/sage-env-config ]; then \
. "$(SAGE_SRC)"/bin/sage-env-config; \
- if [ -n "$$SAGE_LOCAL" ]; then \
- rm -rf "$$SAGE_LOCAL/var/tmp/sage/build"; \
+ if [ -n "$(SAGE_LOCAL)" ]; then \
+ rm -rf "$(SAGE_LOCAL)/var/tmp/sage/build"; \
fi; \
fi
|
comment:15
|
comment:16
Okay, for the purposes of |
comment:17
I think |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:19
Okay, let's try this. This also fixes the bug with |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Reviewer: Matthias Koeppe |
comment:22
Thank you! |
Changed branch from u/jhpalmieri/33705-make-doc-clean to |
Followup to #29310, #33104
We could consider to extend
make doc-clean
so that it also removesinventory
,doctrees
.This should suffice to resolve incremental docbuild problems.
CC: @jhpalmieri @kwankyu
Component: build
Author: John Palmieri
Branch/Commit:
8244126
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33705
The text was updated successfully, but these errors were encountered: