Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit c590a13

Browse files
author
Matthias Koeppe
committed
Merge tag '9.3.beta6' into t/31114/repology
SageMath version 9.3.beta6, Release Date: 2021-01-17
2 parents c3e7386 + 13b4090 commit c590a13

File tree

137 files changed

+3566
-2395
lines changed

Some content is hidden

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

137 files changed

+3566
-2395
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install pycodestyle
1717
run: pip install tox pycodestyle
1818
- name: Lint using pycodestyle
19-
run: tox -e pycodestyle
19+
run: tox -e pycodestyle-minimal
2020
lint-relint:
2121
name: Code style check with relint
2222
runs-on: ubuntu-latest
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/setup-python@v2
2828
with:
2929
python-version: 3.8
30-
- name: Install pycodestyle
30+
- name: Install relint
3131
run: pip install tox relint
3232
- name: Lint using relint
3333
run: tox -e relint src/

.zenodo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"description": "Mirror of the Sage https://sagemath.org/ source tree",
33
"license": "other-open",
4-
"title": "sagemath/sage: 9.3.beta5",
5-
"version": "9.3.beta5",
4+
"title": "sagemath/sage: 9.3.beta6",
5+
"version": "9.3.beta6",
66
"upload_type": "software",
7-
"publication_date": "2020-12-27",
7+
"publication_date": "2021-01-17",
88
"creators": [
99
{
1010
"affiliation": "SageMath.org",
@@ -15,7 +15,7 @@
1515
"related_identifiers": [
1616
{
1717
"scheme": "url",
18-
"identifier": "https://github.com/sagemath/sage/tree/9.3.beta5",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.3.beta6",
1919
"relation": "isSupplementTo"
2020
},
2121
{

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,11 @@ install: all
220220
@echo "from https://github.com/sagemath/binary-pkg"
221221
@echo "******************************************************************"
222222

223+
# Setting SAGE_PKGCONFIG is only so that make does not exit with
224+
# "This Makefile needs to be invoked by build/make/install".
223225
list:
224226
@$(MAKE) --silent build/make/Makefile >&2
225-
@$(MAKE) --silent -f build/make/Makefile SAGE_SPKG_INST=local $@
227+
@$(MAKE) --silent -f build/make/Makefile SAGE_PKGCONFIG=dummy $@
226228

227229
.PHONY: default build dist install micro_release \
228230
misc-clean bdist-clean distclean bootstrap-clean maintainer-clean \

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ version that you are installing.
328328
Please do not hesitate to ask for help in the [SageMath forum
329329
](https://ask.sagemath.org/questions/) or the [sage-support mailing
330330
list](https://groups.google.com/forum/#!forum/sage-support). The
331-
[Troubleshooting section in the Sage Installation Guide]() provides
332-
instructions on what information to provide so that we can provide
331+
[Troubleshooting section in the Sage Installation Guide
332+
](https://doc.sagemath.org/html/en/installation/troubles.html)
333+
provides instructions on what information to provide so that we can provide
333334
help more effectively.
334335

335336
Contributing to Sage

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.3.beta5, Release Date: 2020-12-27
1+
SageMath version 9.3.beta6, Release Date: 2021-01-17

build/bin/sage-dist-helpers

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ _EOF_
148148

149149

150150
sdh_guard() {
151-
sdh_check_vars SAGE_ROOT SAGE_LOCAL SAGE_SHARE
151+
sdh_check_vars SAGE_ROOT SAGE_LOCAL SAGE_INST_LOCAL SAGE_SHARE
152152
}
153153

154154

@@ -160,9 +160,9 @@ sdh_configure() {
160160
if [ -z "$CONFIG_SHELL" ]; then
161161
export CONFIG_SHELL=`command -v bash`
162162
fi
163-
./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" --disable-maintainer-mode --disable-dependency-tracking "$@"
163+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" --disable-maintainer-mode --disable-dependency-tracking "$@"
164164
if [ $? -ne 0 ]; then # perhaps it is a non-autoconf'd project
165-
./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" "$@"
165+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" "$@"
166166
if [ $? -ne 0 ]; then
167167
if [ -f "$(pwd)/config.log" ]; then
168168
sdh_die <<_EOF_
@@ -261,7 +261,7 @@ sdh_store_and_pip_install_wheel() {
261261

262262
sdh_cmake() {
263263
echo "Configuring $PKG_NAME with cmake"
264-
cmake . -DCMAKE_INSTALL_PREFIX="${SAGE_LOCAL}" \
264+
cmake . -DCMAKE_INSTALL_PREFIX="${SAGE_INST_LOCAL}" \
265265
-DCMAKE_INSTALL_LIBDIR=lib \
266266
"$@"
267267
if [ $? -ne 0 ]; then

build/bin/sage-sdist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
########################################################
44
# Build Sage source distribution
5-
# This script should be called by the spkg/bin/sage script
5+
# This script should not be invoked directly.
6+
# Use "sage --sdist" or "make dist".
67
########################################################
78

89
set -e

build/bin/sage-spkg

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# This script is typically invoked by giving the command
66
# sage {-i|-p} <options> <package name>...
77
#
8+
# sage-spkg itself only accepts one <package name>.
9+
#
10+
# sage-spkg <options> <package name> [<installation tree>]
11+
#
812
# Options can be:
913
# -s: do not delete temporary build directory
1014
# -k: do not uninstall existing installation of this package before
@@ -24,8 +28,11 @@
2428
# A package may assume that the following environment
2529
# variables are defined:
2630
#
27-
# SAGE_ROOT -- root directory of sage install
28-
# SAGE_LOCAL -- $SAGE_ROOT/local
31+
# SAGE_ROOT -- root directory of sage distribution
32+
# SAGE_LOCAL -- prefix where packages are installed (usually $SAGE_ROOT/local)
33+
# SAGE_INST_LOCAL-- prefix where to install this package;
34+
# this is set by the optional argument <installation tree>
35+
# and defaults to $SAGE_LOCAL.
2936
# SAGE_DISTFILES -- directory that stores upstream tarballs
3037
# SAGE_DESTDIR -- temporary root the package will be installed to
3138
# PKG_BASE -- the base name of the package itself (e.g. 'patch')
@@ -112,8 +119,10 @@ cat >&2 <<MESSAGE
112119
$1
113120
************************************************************************
114121
Please email sage-devel (http://groups.google.com/group/sage-devel)
115-
explaining the problem and including the log file
122+
explaining the problem and including the log files
116123
$SAGE_LOGS/$PKG_NAME.log
124+
and
125+
$SAGE_ROOT/config.log
117126
Describe your computer, operating system, etc.
118127
MESSAGE
119128

@@ -185,14 +194,6 @@ if [ $? -ne 0 ]; then
185194
exit 1
186195
fi
187196

188-
if [ -z "$SAGE_BUILD_DIR" ]; then
189-
export SAGE_BUILD_DIR="$SAGE_LOCAL/var/tmp/sage/build"
190-
fi
191-
192-
export SAGE_SPKG_INST="$SAGE_LOCAL/var/lib/sage/installed"
193-
export SAGE_SPKG_SCRIPTS="$SAGE_LOCAL/var/lib/sage/scripts"
194-
export SAGE_SPKG_WHEELS="$SAGE_LOCAL/var/lib/sage/wheels"
195-
196197
# Remove '.' from PYTHONPATH, to avoid trouble with setuptools / easy_install
197198
# (cf. #10192, #10176):
198199
if [ -n "$PYTHONPATH" ]; then
@@ -272,6 +273,28 @@ fi
272273
PKG_NAME="$PKG_SRC"
273274
PKG_BASE=`echo "$PKG_NAME" | sed 's/-.*//'` # strip version number
274275

276+
case $# in
277+
1)
278+
SAGE_INST_LOCAL="$SAGE_LOCAL"
279+
;;
280+
2)
281+
SAGE_INST_LOCAL="$2"
282+
;;
283+
*)
284+
usage
285+
exit 1
286+
;;
287+
esac
288+
export SAGE_INST_LOCAL
289+
290+
if [ -z "$SAGE_BUILD_DIR" ]; then
291+
export SAGE_BUILD_DIR="$SAGE_INST_LOCAL/var/tmp/sage/build"
292+
fi
293+
294+
export SAGE_SPKG_INST="$SAGE_INST_LOCAL/var/lib/sage/installed"
295+
export SAGE_SPKG_SCRIPTS="$SAGE_INST_LOCAL/var/lib/sage/scripts"
296+
export SAGE_SPKG_WHEELS="$SAGE_INST_LOCAL/var/lib/sage/wheels"
297+
275298
# USE_LOCAL_SCRIPTS is a flag that if non-empty will cause
276299
# this script to try to install the package using local metadata
277300
# i.e. use upstream tarballs (vs spkgs) and scripts located in build/pkgs/$PKG_BASE
@@ -403,12 +426,12 @@ if [ ! -w "$SAGE_BUILD_DIR" ]; then
403426
error_msg "Error: no write access to build directory $SAGE_BUILD_DIR"
404427
exit 1
405428
fi
406-
if [ ! -d "$SAGE_LOCAL" ]; then
429+
if [ ! -d "$SAGE_INST_LOCAL" ]; then
407430
# If you just unpack Sage and run "sage -p <pkg>" then local does not yet exist
408-
mkdir "$SAGE_LOCAL"
431+
mkdir "$SAGE_INST_LOCAL"
409432
fi
410-
if [ ! -w "$SAGE_LOCAL" ]; then
411-
error_msg "Error: no write access to installation directory $SAGE_LOCAL"
433+
if [ ! -w "$SAGE_INST_LOCAL" ]; then
434+
error_msg "Error: no write access to installation directory $SAGE_INST_LOCAL"
412435
exit 1
413436
fi
414437

@@ -502,7 +525,7 @@ export PKG_NAME="$PKG_NAME"
502525
export PKG_BASE="$PKG_BASE"
503526
export PKG_VER="$PKG_VER"
504527
505-
for lib in "\$SAGE_ROOT/build/bin/sage-dist-helpers" "\$SAGE_SRC/bin/sage-env-config" "\$SAGE_SRC/bin/sage-env" "\$SAGE_ROOT/build/bin/sage-build-env-config"; do
528+
for lib in "\$SAGE_ROOT/build/bin/sage-dist-helpers" "\$SAGE_SRC/bin/sage-env-config" "\$SAGE_SRC/bin/sage-env" "\$SAGE_ROOT/build/bin/sage-build-env-config" "\$SAGE_ROOT/build/bin/sage-build-env"; do
506529
source "\$lib"
507530
if [ \$? -ne 0 ]; then
508531
echo >&2 "Error: failed to source \$lib"
@@ -511,6 +534,8 @@ for lib in "\$SAGE_ROOT/build/bin/sage-dist-helpers" "\$SAGE_SRC/bin/sage-env-co
511534
fi
512535
done
513536
537+
export SAGE_INST_LOCAL="$SAGE_INST_LOCAL"
538+
514539
sdh_guard
515540
if [ \$? -ne 0 ]; then
516541
echo >&2 "Error: sdh_guard not found; Sage environment was not set up properly"
@@ -568,7 +593,7 @@ done
568593
if [ ! -f spkg-install ]; then
569594
echo '#!/usr/bin/env bash' > spkg-install
570595
if [ -x configure ]; then
571-
echo './configure --prefix="$SAGE_LOCAL" && make && $SAGE_SUDO make install' >> spkg-install
596+
echo './configure --prefix="$SAGE_INST_LOCAL" && make && $SAGE_SUDO make install' >> spkg-install
572597
elif [ -f setup.py ]; then
573598
echo 'python setup.py install' >> spkg-install
574599
else
@@ -609,6 +634,7 @@ export rsync_proxy=$http_proxy
609634
##################################################################
610635

611636
if [ "$UNAME" = "CYGWIN" ]; then
637+
# This is a global lock - so we use SAGE_LOCAL, not SAGE_INST_LOCAL.
612638
if [ ! -d "$SAGE_LOCAL/var/lock" ]; then
613639
mkdir -p "$SAGE_LOCAL/var/lock"
614640
fi
@@ -627,9 +653,9 @@ export SAGE_DESTDIR="${SAGE_BUILD_DIR}/${PKG_NAME}/inst"
627653

628654
# The actual prefix where the installation will be staged. This is the
629655
# directory that you need to work in if you want to change the staged
630-
# installation tree (before final installation to $SAGE_LOCAL) at the
656+
# installation tree (before final installation to $SAGE_INST_LOCAL) at the
631657
# end of spkg-install.
632-
export SAGE_DESTDIR_LOCAL="${SAGE_DESTDIR}${SAGE_LOCAL}"
658+
export SAGE_DESTDIR_LOCAL="${SAGE_DESTDIR}${SAGE_INST_LOCAL}"
633659

634660
# First uninstall the previous version of this package, if any
635661
if [ "$KEEP_EXISTING" != "yes" ]; then

build/make/Makefile.in

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@
1717
# Always use bash for make rules
1818
SHELL = @SHELL@
1919

20-
ifndef SAGE_SPKG_INST
21-
ifndef DEBUG_RULES
20+
# Check a variable that is only set in build/make/install, but not in sage-env, for example
21+
ifndef SAGE_PKGCONFIG
22+
# Set by build/bin/sage-sdist, which invokes the Makefile directly in
23+
# order to download upstream packages for distribution.
24+
ifndef SAGE_SPKG_COPY_UPSTREAM
2225
$(error This Makefile needs to be invoked by build/make/install)
23-
else
24-
# A dummy value for this variable for debugging purposes
25-
SAGE_SPKG_INST=installed
2626
endif
2727
endif
2828

2929
# Directory to keep track of which packages are installed
30+
SAGE_SPKG_INST = $(SAGE_LOCAL)/var/lib/sage/installed
31+
3032
INST = $(SAGE_SPKG_INST)
3133

3234
# Aliases for mutually exclusive standard packages selected at configure time
@@ -588,6 +590,8 @@ $(1)-no-deps:
588590
. '$$(SAGE_ROOT)/src/bin/sage-env' && \
589591
. '$$(SAGE_ROOT)/build/bin/sage-build-env-config' && \
590592
. '$$(SAGE_ROOT)/build/bin/sage-build-env' && \
593+
SAGE_SPKG_WHEELS=$$(SAGE_LOCAL)/var/lib/sage/wheels \
594+
SAGE_INST_LOCAL=$$(SAGE_LOCAL) \
591595
sage-logger -p '$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' '$$(SAGE_LOGS)/$(1)-$(2).log'
592596
touch "$$(INST)/$(1)-$(2)"
593597

build/make/install

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ fi
1818
export SAGE_SHARE="$SAGE_LOCAL/share"
1919
export SAGE_PKGCONFIG="$SAGE_LOCAL/lib/pkgconfig"
2020
export SAGE_LOGS="$SAGE_ROOT/logs/pkgs"
21-
export SAGE_SPKG_INST="$SAGE_LOCAL/var/lib/sage/installed"
22-
# Following line is duplicated here from build/bin/sage-spkg.
23-
# because the setting is also needed by some script packages.
24-
# The line here will be removed in #29386 (install script packages
25-
# via sage-spkg).
26-
export SAGE_SPKG_WHEELS="$SAGE_LOCAL/var/lib/sage/wheels"
2721

2822
if [ -z "${SAGE_ORIG_PATH_SET}" ]; then
2923
SAGE_ORIG_PATH=$PATH && export SAGE_ORIG_PATH

0 commit comments

Comments
 (0)