Skip to content

Commit 4faf798

Browse files
author
Matthias Koeppe
committed
Merge #32759
2 parents c5af195 + 43221d0 commit 4faf798

File tree

97 files changed

+543
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+543
-162
lines changed

Makefile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ download:
7979
dist: build/make/Makefile
8080
./sage --sdist
8181

82+
pypi-sdists: sage_setup
83+
./sage --sh build/pkgs/sage_conf/spkg-src
84+
./sage --sh build/pkgs/sage_setup/spkg-src
85+
./sage --sh build/pkgs/sage_sws2rst/spkg-src
86+
./sage --sh build/pkgs/sage_docbuild/spkg-src
87+
./sage --sh build/pkgs/sage_setup/spkg-src
88+
./sage --sh build/pkgs/sagelib/spkg-src
89+
@echo "Built sdists are in upstream/"
90+
8291
# ssl: build Sage, and also install pyOpenSSL. This is necessary for
8392
# running the secure notebook. This make target requires internet
8493
# access. Note that this requires that your system have OpenSSL
@@ -172,11 +181,10 @@ TESTALL = ./sage -t --all
172181
PTESTALL = ./sage -t -p --all
173182

174183
# Flags for ./sage -t --all.
175-
# By default, include all tests marked 'dochtml' -- see
176-
# https://trac.sagemath.org/ticket/25345 and
177-
# https://trac.sagemath.org/ticket/26110.
178-
TESTALL_FLAGS = --optional=sage,dochtml,optional,external,build
179-
TESTALL_NODOC_FLAGS = --optional=sage,optional,external,build
184+
# When the documentation is installed, "optional" also includes all tests marked 'sagemath_doc_html',
185+
# see https://trac.sagemath.org/ticket/25345, https://trac.sagemath.org/ticket/26110, and
186+
# https://trac.sagemath.org/ticket/32759
187+
TESTALL_FLAGS = --optional=sage,optional,external,build
180188

181189
test: all
182190
$(TESTALL) --logfile=logs/test.log
@@ -222,25 +230,25 @@ test-nodoc: build
222230
check-nodoc: test-nodoc
223231

224232
testall-nodoc: build
225-
$(TESTALL) $(TESTALL_NODOC_FLAGS) --logfile=logs/testall.log
233+
$(TESTALL) $(TESTALL_FLAGS) --logfile=logs/testall.log
226234

227235
testlong-nodoc: build
228236
$(TESTALL) --long --logfile=logs/testlong.log
229237

230238
testalllong-nodoc: build
231-
$(TESTALL) --long $(TESTALL_NODOC_FLAGS) --logfile=logs/testalllong.log
239+
$(TESTALL) --long $(TESTALL_FLAGS) --logfile=logs/testalllong.log
232240

233241
ptest-nodoc: build
234242
$(PTESTALL) --logfile=logs/ptest.log
235243

236244
ptestall-nodoc: build
237-
$(PTESTALL) $(TESTALL_NODOC_FLAGS) --logfile=logs/ptestall.log
245+
$(PTESTALL) $(TESTALL_FLAGS) --logfile=logs/ptestall.log
238246

239247
ptestlong-nodoc: build
240248
$(PTESTALL) --long --logfile=logs/ptestlong.log
241249

242250
ptestalllong-nodoc: build
243-
$(PTESTALL) --long $(TESTALL_NODOC_FLAGS) --logfile=logs/ptestalllong.log
251+
$(PTESTALL) --long $(TESTALL_FLAGS) --logfile=logs/ptestalllong.log
244252

245253
testoptional-nodoc: build
246254
$(TESTALL) --logfile=logs/testoptional.log

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ SAGE_ROOT Root directory (sage-x.y.z in Sage tarball)
400400
│ │
401401
│ └── tmp/sage/ Temporary files when building Sage
402402
├── logs
403-
│ ├── dochtml.log Log of the documentation build
404403
│ ├── install.log Full install log
405404
│ └── pkgs Build logs of individual packages
406405
│ ├── alabaster-0.7.12.log

build/bin/write-dockerfile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ FROM with-system-packages as bootstrapped
187187
#:bootstrapping:
188188
RUN mkdir -p /sage
189189
WORKDIR /sage
190-
ADD Makefile VERSION.txt README.md bootstrap configure.ac sage ./
190+
ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap configure.ac sage .homebrew-build-env tox.ini Pipfile.m4 ./
191191
ADD src/doc/bootstrap src/doc/bootstrap
192192
ADD src/bin src/bin
193193
ADD m4 ./m4

build/make/Makefile.in

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ SAGE_SPKG_OPTIONS = @SAGE_SPKG_OPTIONS@
5454

5555
# Where the Sage distribution installs documentation.
5656
# set to empty if --disable-doc is used
57-
SAGE_DOCS = $(SAGE_LOCAL)
57+
SAGE_DOCS = @SAGE_DOCS@
58+
SAGE_DOCS_DISABLED_MESSAGE = This Sage build is configured with "configure --disable-doc", so building the documentation will not work.
5859

5960
# Where the Sage distribution installs Python packages.
6061
# This can be overridden by 'make SAGE_VENV=/some/venv'.
@@ -219,7 +220,7 @@ endif
219220
# the doc build takes the most time and should be started as soon as
220221
# possible.
221222
all-start: toolchain-deps
222-
+$(MAKE_REC) doc all-sage
223+
+$(MAKE_REC) all-sage-docs all-sage
223224

224225
# Build everything except the documentation
225226
all-build: toolchain-deps
@@ -234,7 +235,6 @@ base-toolchain: _clean-broken-gcc base
234235

235236
# All targets except for the base packages and except the documentation
236237
all-sage: \
237-
sagelib \
238238
$(SAGE_LOCAL_INSTALLED_PACKAGE_INSTS) $(SAGE_LOCAL_UNINSTALLED_PACKAGES_CLEANS) \
239239
$(SAGE_VENV_INSTALLED_PACKAGE_INSTS) $(SAGE_VENV_UNINSTALLED_PACKAGES_CLEANS)
240240

@@ -325,7 +325,7 @@ base: $(inst_patch) $(inst_pkgconf)
325325
#
326326
# $ ./sage --docbuild -H
327327

328-
doc: $(SAGE_DOCS_INSTALLED_PACKAGE_INSTS) $(SAGE_DOCS_UNINSTALLED_PACKAGES_CLEANS)
328+
doc: doc-html
329329

330330
# All doc-building is delegated to the script packages
331331
# sagemath_doc_html, sagemath_doc_pdf
@@ -528,9 +528,15 @@ $$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2): $(3)
528528
$(1): $$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2)
529529

530530
$(1)-$(4)-no-deps:
531-
+$(AM_V_at)sage-logger -p 'SAGE_CHECK=$$(SAGE_CHECK_$(1)) PATH=$$($(4))/bin:$$$$PATH $$(SAGE_SPKG) $$(SAGE_SPKG_OPTIONS) \
531+
+@if [ -z '$$($(4))' ]; then \
532+
echo "Error: The installation tree $(4) has been disabled" 2>&1; \
533+
echo "$$($(4)_DISABLED_MESSAGE)" 2>&1; \
534+
exit 1; \
535+
else \
536+
$(AM_V_at)sage-logger -p 'SAGE_CHECK=$$(SAGE_CHECK_$(1)) PATH=$$($(4))/bin:$$$$PATH $$(SAGE_SPKG) $$(SAGE_SPKG_OPTIONS) \
532537
$(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-existing) \
533-
$(1)-$(2) $$($(4))' '$$(SAGE_LOGS)/$(1)-$(2).log'
538+
$(1)-$(2) $$($(4))' '$$(SAGE_LOGS)/$(1)-$(2).log'; \
539+
fi
534540

535541
$(1)-no-deps: $(1)-$(4)-no-deps
536542

@@ -632,7 +638,11 @@ $$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2): $(3)
632638
$(1): $$($(4))/$(SPKG_INST_RELDIR)/$(1)-$(2)
633639

634640
$(1)-$(4)-no-deps:
635-
@if [ -x '$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' ]; then \
641+
+@if [ -z '$$($(4))' ]; then \
642+
echo "Error: The installation tree $(4) has been disabled" 2>&1; \
643+
echo "$$($(4)_DISABLED_MESSAGE)" 2>&1; \
644+
exit 1; \
645+
elif [ -x '$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' ]; then \
636646
$(AM_V_at)cd '$$(SAGE_ROOT)/build/pkgs/$(1)' && \
637647
. '$$(SAGE_ROOT)/src/bin/sage-src-env-config' && \
638648
. '$$(SAGE_ROOT)/src/bin/sage-env-config' && \

build/make/install

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ during this run of 'make $@'):
107107
EOF
108108

109109
look_for_errors "$SAGE_LOGS/*.log" 20 "^Error" package >&2
110-
look_for_errors "$SAGE_LOGS/../doc*.log" 100 "^Error" documentation >&2
111110

112111
cat >&2 <<EOF
113112

build/pkgs/pplpy/dependencies

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
$(PYTHON) $(MP_LIBRARY) gmpy2 cysignals mpfr mpc ppl | $(PYTHON_TOOLCHAIN) sphinx
1+
$(PYTHON) $(MP_LIBRARY) gmpy2 cysignals mpfr mpc ppl | $(PYTHON_TOOLCHAIN)
22

33
----------
44
All lines of this file are ignored except the first.
5-
It is copied by SAGE_ROOT/build/make/install into SAGE_ROOT/build/make/Makefile.

build/pkgs/pplpy/spkg-install.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
cd src && sdh_pip_install .
2-
3-
# During spkg-install execution, the compiled files are still in a temporary
4-
# directory and are copied to their destination after the end of the script.
5-
# As sphinx need theses compiled files, the compilation and installation
6-
# of pplpy's documentation is done after the end of spkg-install
7-
# in the spkg-postinst script.

build/pkgs/pplpy/spkg-postinst.in

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/pkgs/pplpy/spkg-postrm.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

build/pkgs/pplpy_doc/SPKG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pplpy_doc: Python interface to the Parma Polyhedra Library (documentation)
2+
==========================================================================
3+
4+
Description
5+
-----------
6+
7+
PPL Python wrapper (documentation)
8+
9+
License
10+
-------
11+
12+
GPL version 3
13+
14+
15+
Upstream Contact
16+
----------------
17+
18+
- https://github.com/videlec/pplpy

0 commit comments

Comments
 (0)