@@ -128,11 +128,14 @@ PIP_PACKAGES = @SAGE_PIP_PACKAGES@
128
128
# Packages that use the 'script' package build rules
129
129
SCRIPT_PACKAGES = @SAGE_SCRIPT_PACKAGES@
130
130
131
- # Packages for which we build wheels for PyPI
132
- PYPI_WHEEL_PACKAGES = \
131
+ # Packages for which we build platform-independent wheels for PyPI
132
+ PYPI_NOARCH_WHEEL_PACKAGES = \
133
133
sage_sws2rst \
134
134
sage_setup \
135
135
sagemath_environment \
136
+
137
+ # Packages for which we build wheels for PyPI
138
+ PYPI_WHEEL_PACKAGES = $(PYPI_NOARCH_WHEEL_PACKAGES ) \
136
139
sagemath_objects \
137
140
sagemath_repl \
138
141
sagemath_categories \
@@ -220,7 +223,7 @@ SAGE_I_TARGETS = sagelib doc
220
223
# Tell make not to look for files with these names:
221
224
.PHONY : all all-sage all-toolchain all-build all-sageruntime \
222
225
all-start build-start base toolchain toolchain-deps base-toolchain \
223
- pypi-sdists pypi-wheels wheels \
226
+ pypi-sdists pypi-noarch-wheels pypi- wheels wheels \
224
227
sagelib \
225
228
doc doc-html doc-html-jsmath doc-html-mathjax doc-pdf \
226
229
doc-uninstall \
@@ -453,6 +456,13 @@ pypi-sdists: $(PYPI_SDIST_PACKAGES:%=%-sdist)
453
456
# Ensuring wheels are present, even for packages that may have been installed
454
457
# as editable. Until we have better uninstallation of script packages, we
455
458
# just remove the timestamps, which will lead to rebuilds of the packages.
459
+ pypi-noarch-wheels :
460
+ for a in $( PYPI_NOARCH_WHEEL_PACKAGES) ; do \
461
+ rm -f $(SAGE_VENV ) /var/lib/sage/installed/$$ a-* ; \
462
+ done
463
+ $(MAKE_REC ) SAGE_EDITABLE=no SAGE_WHEELS=yes $(PYPI_NOARCH_WHEEL_PACKAGES )
464
+ @echo " Built wheels are in venv/var/lib/sage/wheels/"
465
+
456
466
pypi-wheels :
457
467
for a in $( PYPI_WHEEL_PACKAGES) ; do \
458
468
rm -f $(SAGE_VENV ) /var/lib/sage/installed/$$ a-* ; \
0 commit comments