From cc58c2dd882b88cf0efe9f656e3d58aec0da4d5e Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 17 Dec 2022 13:26:28 -0800 Subject: [PATCH 01/10] build/pkgs/sagelib/spkg-src: Use build --- build/pkgs/sagelib/spkg-src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/pkgs/sagelib/spkg-src b/build/pkgs/sagelib/spkg-src index db4e2682ba1..f97a0322de9 100755 --- a/build/pkgs/sagelib/spkg-src +++ b/build/pkgs/sagelib/spkg-src @@ -4,7 +4,7 @@ # This script is not used during build. # # HOW TO MAKE THE TARBALL: -# ./sage --sh build/pkgs/sagelib/spkg-src +# make python_build && ./sage --sh build/pkgs/sagelib/spkg-src if [ -z "$SAGE_ROOT" ] ; then echo >&2 "Error - SAGE_ROOT undefined ... exiting" @@ -18,4 +18,4 @@ set -e cd "$SAGE_ROOT"/build/pkgs/sagelib cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +python3 -m build --sdist --outdir "$SAGE_DISTFILES" From eee3f1a5f2e4980276d261b38c9507e98b949ea2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 17 Dec 2022 13:26:59 -0800 Subject: [PATCH 02/10] Makefile (pypi-sdists): Install python_build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 414398ddf0d..393d0b62a78 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ download: dist: build/make/Makefile ./sage --sdist -pypi-sdists: sage_setup +pypi-sdists: sage_setup python_build ./sage --sh build/pkgs/sage_conf/spkg-src ./sage --sh build/pkgs/sage_sws2rst/spkg-src ./sage --sh build/pkgs/sage_docbuild/spkg-src From 915179438a7ce4a04b2050ce7714f3d1a98023e6 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 14:36:01 -0800 Subject: [PATCH 03/10] build/pkgs/sagelib/spkg-src: Use --no-isolation, remove old egg-info --- build/pkgs/sagelib/spkg-src | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/pkgs/sagelib/spkg-src b/build/pkgs/sagelib/spkg-src index f97a0322de9..bfc500b099b 100755 --- a/build/pkgs/sagelib/spkg-src +++ b/build/pkgs/sagelib/spkg-src @@ -18,4 +18,8 @@ set -e cd "$SAGE_ROOT"/build/pkgs/sagelib cd src -python3 -m build --sdist --outdir "$SAGE_DISTFILES" + +# Get rid of old sagemath_standard.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" From c59622a42624037d4eba61e353ea07ae00bd55f6 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 17:12:03 -0800 Subject: [PATCH 04/10] build/pkgs/sagemath*/spkg-src: Use build --- build/pkgs/sage_conf/spkg-src | 5 ++++- build/pkgs/sage_docbuild/spkg-src | 5 ++++- build/pkgs/sage_setup/spkg-src | 5 ++++- build/pkgs/sage_sws2rst/spkg-src | 5 ++++- build/pkgs/sagelib/spkg-src | 2 +- build/pkgs/sagemath_categories/spkg-src | 5 ++++- build/pkgs/sagemath_environment/spkg-src | 5 ++++- build/pkgs/sagemath_objects/spkg-src | 6 +++++- build/pkgs/sagemath_repl/spkg-src | 5 ++++- 9 files changed, 34 insertions(+), 9 deletions(-) diff --git a/build/pkgs/sage_conf/spkg-src b/build/pkgs/sage_conf/spkg-src index af6e8b16342..5336cb0001a 100755 --- a/build/pkgs/sage_conf/spkg-src +++ b/build/pkgs/sage_conf/spkg-src @@ -16,4 +16,7 @@ fi set -e cd pkgs/sage-conf_pypi -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_docbuild/spkg-src b/build/pkgs/sage_docbuild/spkg-src index dc1ba829b3a..59a2ffce5b1 100755 --- a/build/pkgs/sage_docbuild/spkg-src +++ b/build/pkgs/sage_docbuild/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sage_docbuild cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_setup/spkg-src b/build/pkgs/sage_setup/spkg-src index e1bcbdaabdb..b3f5059bc89 100755 --- a/build/pkgs/sage_setup/spkg-src +++ b/build/pkgs/sage_setup/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sage_setup cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_sws2rst/spkg-src b/build/pkgs/sage_sws2rst/spkg-src index 0da7d0cd24c..da002cdb6f6 100755 --- a/build/pkgs/sage_sws2rst/spkg-src +++ b/build/pkgs/sage_sws2rst/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sage_sws2rst cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagelib/spkg-src b/build/pkgs/sagelib/spkg-src index bfc500b099b..9ee6a144e3c 100755 --- a/build/pkgs/sagelib/spkg-src +++ b/build/pkgs/sagelib/spkg-src @@ -19,7 +19,7 @@ cd "$SAGE_ROOT"/build/pkgs/sagelib cd src -# Get rid of old sagemath_standard.egg-info/SOURCES.txt +# Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_categories/spkg-src b/build/pkgs/sagemath_categories/spkg-src index 327d51651b9..7cf05bb5cfa 100755 --- a/build/pkgs/sagemath_categories/spkg-src +++ b/build/pkgs/sagemath_categories/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sagemath_categories cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_environment/spkg-src b/build/pkgs/sagemath_environment/spkg-src index 4e2b7503da2..09baab68f68 100755 --- a/build/pkgs/sagemath_environment/spkg-src +++ b/build/pkgs/sagemath_environment/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sagemath_environment cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_objects/spkg-src b/build/pkgs/sagemath_objects/spkg-src index 68719fae1b6..7cef019eb0f 100755 --- a/build/pkgs/sagemath_objects/spkg-src +++ b/build/pkgs/sagemath_objects/spkg-src @@ -18,4 +18,8 @@ set -e cd build/pkgs/sagemath_objects cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" + +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_repl/spkg-src b/build/pkgs/sagemath_repl/spkg-src index b20ea463784..16b41acc042 100755 --- a/build/pkgs/sagemath_repl/spkg-src +++ b/build/pkgs/sagemath_repl/spkg-src @@ -18,4 +18,7 @@ set -e cd build/pkgs/sagemath_repl cd src -python3 -u setup.py --no-user-cfg sdist --dist-dir "$SAGE_DISTFILES" +# Get rid of old *.egg-info/SOURCES.txt +rm -Rf *.egg-info + +python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" From 7fc93d06de9f0e34d2ea2077f1a022750c722235 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 17:42:59 -0800 Subject: [PATCH 05/10] build/pkgs/sagemath*/spkg-src: Use --skip-dependency-check --- build/pkgs/sage_conf/spkg-src | 2 +- build/pkgs/sage_docbuild/spkg-src | 2 +- build/pkgs/sage_setup/spkg-src | 2 +- build/pkgs/sage_sws2rst/spkg-src | 2 +- build/pkgs/sagelib/spkg-src | 2 +- build/pkgs/sagemath_categories/spkg-src | 2 +- build/pkgs/sagemath_environment/spkg-src | 2 +- build/pkgs/sagemath_objects/spkg-src | 2 +- build/pkgs/sagemath_repl/spkg-src | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build/pkgs/sage_conf/spkg-src b/build/pkgs/sage_conf/spkg-src index 5336cb0001a..c2fa51df092 100755 --- a/build/pkgs/sage_conf/spkg-src +++ b/build/pkgs/sage_conf/spkg-src @@ -19,4 +19,4 @@ cd pkgs/sage-conf_pypi # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_docbuild/spkg-src b/build/pkgs/sage_docbuild/spkg-src index 59a2ffce5b1..b21f8f015c8 100755 --- a/build/pkgs/sage_docbuild/spkg-src +++ b/build/pkgs/sage_docbuild/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_setup/spkg-src b/build/pkgs/sage_setup/spkg-src index b3f5059bc89..1b137206a5c 100755 --- a/build/pkgs/sage_setup/spkg-src +++ b/build/pkgs/sage_setup/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sage_sws2rst/spkg-src b/build/pkgs/sage_sws2rst/spkg-src index da002cdb6f6..5a2a6d464dd 100755 --- a/build/pkgs/sage_sws2rst/spkg-src +++ b/build/pkgs/sage_sws2rst/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagelib/spkg-src b/build/pkgs/sagelib/spkg-src index 9ee6a144e3c..aa97a393b0b 100755 --- a/build/pkgs/sagelib/spkg-src +++ b/build/pkgs/sagelib/spkg-src @@ -22,4 +22,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_categories/spkg-src b/build/pkgs/sagemath_categories/spkg-src index 7cf05bb5cfa..e7c48e54193 100755 --- a/build/pkgs/sagemath_categories/spkg-src +++ b/build/pkgs/sagemath_categories/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_environment/spkg-src b/build/pkgs/sagemath_environment/spkg-src index 09baab68f68..2d5b3aafde7 100755 --- a/build/pkgs/sagemath_environment/spkg-src +++ b/build/pkgs/sagemath_environment/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_objects/spkg-src b/build/pkgs/sagemath_objects/spkg-src index 7cef019eb0f..f46ddc2bd3b 100755 --- a/build/pkgs/sagemath_objects/spkg-src +++ b/build/pkgs/sagemath_objects/spkg-src @@ -22,4 +22,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" diff --git a/build/pkgs/sagemath_repl/spkg-src b/build/pkgs/sagemath_repl/spkg-src index 16b41acc042..2ef7b673696 100755 --- a/build/pkgs/sagemath_repl/spkg-src +++ b/build/pkgs/sagemath_repl/spkg-src @@ -21,4 +21,4 @@ cd src # Get rid of old *.egg-info/SOURCES.txt rm -Rf *.egg-info -python3 -m build --sdist --no-isolation --outdir "$SAGE_DISTFILES" +python3 -m build --sdist --no-isolation --skip-dependency-check --outdir "$SAGE_DISTFILES" From 4940db4cf4d32617f23a87e04bddaa01061a7f5f Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 17:44:05 -0800 Subject: [PATCH 06/10] build/make/Makefile.in: Add targets SPKG-src for script packages --- build/make/Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/make/Makefile.in b/build/make/Makefile.in index e971def2416..c2de6ab9892 100644 --- a/build/make/Makefile.in +++ b/build/make/Makefile.in @@ -711,6 +711,13 @@ $(1)-uninstall: $(1)-$(4)-uninstall $(1)-clean: $(1)-uninstall +$(1)-sdist: FORCE python_build sage_setup cython + $(AM_V_at) cd '$$(SAGE_ROOT)' && \ + . '$$(SAGE_ROOT)/src/bin/sage-src-env-config' && \ + . '$$(SAGE_ROOT)/src/bin/sage-env-config' && \ + . '$$(SAGE_ROOT)/src/bin/sage-env' && \ + '$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-src' + # Recursive tox invocation (note - we do not set the environment here). # Setting SAGE_SPKG_WHEELS is for the benefit of sagelib's tox.ini $(1)-tox-%: FORCE From 573fcfdfba04041260f8e06e54e37eb8a9f85da4 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 18:26:36 -0800 Subject: [PATCH 07/10] build/make/Makefile.in: Move targets pypi-sdists, wheel, pypi-wheels here; use SPKG-sdist targets --- Makefile | 37 ------------------------------------- build/make/Makefile.in | 39 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Makefile b/Makefile index 393d0b62a78..257e3517bb1 100644 --- a/Makefile +++ b/Makefile @@ -80,42 +80,6 @@ download: dist: build/make/Makefile ./sage --sdist -pypi-sdists: sage_setup python_build - ./sage --sh build/pkgs/sage_conf/spkg-src - ./sage --sh build/pkgs/sage_sws2rst/spkg-src - ./sage --sh build/pkgs/sage_docbuild/spkg-src - ./sage --sh build/pkgs/sage_setup/spkg-src - ./sage --sh build/pkgs/sagelib/spkg-src - ./sage --sh build/pkgs/sagemath_objects/spkg-src - ./sage --sh build/pkgs/sagemath_categories/spkg-src - ./sage --sh build/pkgs/sagemath_environment/spkg-src - ./sage --sh build/pkgs/sagemath_repl/spkg-src - @echo "Built sdists are in upstream/" - -# Ensuring wheels are present, even for packages that may have been installed -# as editable. Until we have better uninstallation of script packages, we -# just remove the timestamps, which will lead to rebuilds of the packages. -PYPI_WHEEL_PACKAGES = sage_sws2rst sage_setup sagemath_environment sagemath_objects sagemath_repl sagemath_categories -pypi-wheels: - for a in $(PYPI_WHEEL_PACKAGES); do \ - rm -f venv/var/lib/sage/installed/$$a-*; \ - done - for a in $(PYPI_WHEEL_PACKAGES); do \ - $(MAKE) SAGE_EDITABLE=no SAGE_WHEELS=yes $$a; \ - done - @echo "Built wheels are in venv/var/lib/sage/wheels/" - -# sage_docbuild is here, not in PYPI_WHEEL_PACKAGES, because it depends on sagelib -WHEEL_PACKAGES = $(PYPI_WHEEL_PACKAGES) sage_conf sagelib sage_docbuild -wheels: - for a in $(WHEEL_PACKAGES); do \ - rm -f venv/var/lib/sage/installed/$$a-*; \ - done - for a in $(WHEEL_PACKAGES); do \ - $(MAKE) SAGE_EDITABLE=no SAGE_WHEELS=yes $$a; \ - done - @echo "Built wheels are in venv/var/lib/sage/wheels/" - ############################################################################### # Cleaning up ############################################################################### @@ -380,7 +344,6 @@ list: @$(MAKE) --silent -f build/make/Makefile SAGE_PKGCONFIG=dummy $@ .PHONY: default build dist install micro_release \ - pypi-sdists pypi-wheels wheels \ misc-clean bdist-clean distclean bootstrap-clean maintainer-clean \ test check testoptional testall testlong testoptionallong testallong \ ptest ptestoptional ptestall ptestlong ptestoptionallong ptestallong \ diff --git a/build/make/Makefile.in b/build/make/Makefile.in index c2de6ab9892..e4957c4d481 100644 --- a/build/make/Makefile.in +++ b/build/make/Makefile.in @@ -128,7 +128,23 @@ PIP_PACKAGES = @SAGE_PIP_PACKAGES@ # Packages that use the 'script' package build rules SCRIPT_PACKAGES = @SAGE_SCRIPT_PACKAGES@ - +# Packages for which we build wheels for PyPI +PYPI_WHEEL_PACKAGES = \ + sage_sws2rst \ + sage_setup \ + sagemath_environment \ + sagemath_objects \ + sagemath_repl \ + sagemath_categories + +# sage_docbuild is here, not in PYPI_WHEEL_PACKAGES, because it depends on sagelib +WHEEL_PACKAGES = $(PYPI_WHEEL_PACKAGES) \ + sage_conf \ + sagelib \ + sage_docbuild + +# Packages for which build sdists for PyPI +PYPI_SDIST_PACKAGES = $(WHEEL_PACKAGES) # Generate the actual inst_ variables; for each package that is # actually built this generates a line like: @@ -198,6 +214,7 @@ SAGE_I_TARGETS = sagelib doc # Tell make not to look for files with these names: .PHONY: all all-sage all-toolchain all-build all-sageruntime \ all-start build-start base toolchain toolchain-deps base-toolchain \ + pypi-sdists pypi-wheels wheels \ sagelib \ doc doc-html doc-html-jsmath doc-html-mathjax doc-pdf \ doc-uninstall \ @@ -418,6 +435,26 @@ list-broken-packages: auditwheel_or_delocate echo >&2 "$$fix_broken_packages"; \ fi +pypi-sdists: $(PYPI_SDIST_PACKAGES:%=%-sdist) + @echo "Built sdists are in upstream/" + +# Ensuring wheels are present, even for packages that may have been installed +# as editable. Until we have better uninstallation of script packages, we +# just remove the timestamps, which will lead to rebuilds of the packages. +PYPI_WHEEL_PACKAGES = sage_sws2rst sage_setup sagemath_environment sagemath_objects sagemath_repl sagemath_categories +pypi-wheels: + for a in $(PYPI_WHEEL_PACKAGES); do \ + rm -f venv/var/lib/sage/installed/$$a-*; \ + done + $(MAKE_REC) SAGE_EDITABLE=no SAGE_WHEELS=yes $(PYPI_WHEEL_PACKAGES) + @echo "Built wheels are in venv/var/lib/sage/wheels/" + +wheels: + for a in $(WHEEL_PACKAGES); do \ + rm -f venv/var/lib/sage/installed/$$a-*; \ + done + $(MAKE_REC) SAGE_EDITABLE=no SAGE_WHEELS=yes $(WHEEL_PACKAGES) + @echo "Built wheels are in venv/var/lib/sage/wheels/" #============================================================================== # Setting SAGE_CHECK... variables From 0bd13ac7095789740ce098e23a7b0af4978c621c Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 18 Dec 2022 19:40:54 -0800 Subject: [PATCH 08/10] build/make/Makefile.in: Remove duplicate setting of PYPI_WHEEL_PACKAGES --- build/make/Makefile.in | 1 - 1 file changed, 1 deletion(-) diff --git a/build/make/Makefile.in b/build/make/Makefile.in index e4957c4d481..7926872a789 100644 --- a/build/make/Makefile.in +++ b/build/make/Makefile.in @@ -441,7 +441,6 @@ pypi-sdists: $(PYPI_SDIST_PACKAGES:%=%-sdist) # Ensuring wheels are present, even for packages that may have been installed # as editable. Until we have better uninstallation of script packages, we # just remove the timestamps, which will lead to rebuilds of the packages. -PYPI_WHEEL_PACKAGES = sage_sws2rst sage_setup sagemath_environment sagemath_objects sagemath_repl sagemath_categories pypi-wheels: for a in $(PYPI_WHEEL_PACKAGES); do \ rm -f venv/var/lib/sage/installed/$$a-*; \ From 11bbe95dc9c11197ff400d98b2df81d5e3e8d2f5 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 22 Feb 2023 21:43:37 -0800 Subject: [PATCH 09/10] build/make/Makefile.in (pypi-wheels, wheels): Fix cleaning of timestamps --- build/make/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/make/Makefile.in b/build/make/Makefile.in index 7926872a789..9efd248cfb4 100644 --- a/build/make/Makefile.in +++ b/build/make/Makefile.in @@ -443,14 +443,14 @@ pypi-sdists: $(PYPI_SDIST_PACKAGES:%=%-sdist) # just remove the timestamps, which will lead to rebuilds of the packages. pypi-wheels: for a in $(PYPI_WHEEL_PACKAGES); do \ - rm -f venv/var/lib/sage/installed/$$a-*; \ + rm -f $(SAGE_VENV)/var/lib/sage/installed/$$a-*; \ done $(MAKE_REC) SAGE_EDITABLE=no SAGE_WHEELS=yes $(PYPI_WHEEL_PACKAGES) @echo "Built wheels are in venv/var/lib/sage/wheels/" wheels: for a in $(WHEEL_PACKAGES); do \ - rm -f venv/var/lib/sage/installed/$$a-*; \ + rm -f $(SAGE_VENV)/var/lib/sage/installed/$$a-*; \ done $(MAKE_REC) SAGE_EDITABLE=no SAGE_WHEELS=yes $(WHEEL_PACKAGES) @echo "Built wheels are in venv/var/lib/sage/wheels/" From c0f6348d766ff577b420ceb5c51468c0d5328196 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 23 Feb 2023 22:12:08 -0800 Subject: [PATCH 10/10] build/pkgs/sage_sws2rst/spkg-install: Fix for SAGE_CHECK=yes --- build/pkgs/sage_sws2rst/spkg-install | 1 + 1 file changed, 1 insertion(+) diff --git a/build/pkgs/sage_sws2rst/spkg-install b/build/pkgs/sage_sws2rst/spkg-install index 47ef9ee6cbf..9cb71471fd8 100755 --- a/build/pkgs/sage_sws2rst/spkg-install +++ b/build/pkgs/sage_sws2rst/spkg-install @@ -18,6 +18,7 @@ if [ "$SAGE_EDITABLE" = yes ]; then else sdh_pip_install . fi +cd .. # For type=script packages, spkg-check is not run case "$SAGE_CHECK" in yes)