Skip to content

Commit bb8b92d

Browse files
committed
Merge tag '9.5.beta5' into public/32587
SageMath version 9.5.beta5, Release Date: 2021-10-28
2 parents 35c1b5f + f716a0b commit bb8b92d

File tree

315 files changed

+3274
-6663
lines changed

Some content is hidden

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

315 files changed

+3274
-6663
lines changed

.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.5.beta4",
5-
"version": "9.5.beta4",
4+
"title": "sagemath/sage: 9.5.beta5",
5+
"version": "9.5.beta5",
66
"upload_type": "software",
7-
"publication_date": "2021-10-19",
7+
"publication_date": "2021-10-28",
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.5.beta4",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.5.beta5",
1919
"relation": "isSupplementTo"
2020
},
2121
{

Pipfile.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ numpy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../numpy/package-version.txt)')"
2424
cysignals = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cysignals/package-version.txt)')"
2525
cypari2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cypari/package-version.txt)')"
2626
gmpy2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../gmpy2/package-version.txt)')"
27-
psutil = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../psutil/package-version.txt)')"
2827
pexpect = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../pexpect/package-version.txt)')"
2928
ipython = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../ipython/package-version.txt)')"
3029
sympy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../sympy/package-version.txt)')"

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.5.beta4, Release Date: 2021-10-19
1+
SageMath version 9.5.beta5, Release Date: 2021-10-28

build/bin/sage-dist-helpers

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,17 @@ sdh_store_and_pip_install_wheel() {
306306
local sudo=""
307307
local root=""
308308
fi
309+
# Trac #32659: pip no longer reinstalls local wheels if the version is the same.
310+
# Because neither (1) applying patches nor (2) local changes (in the case
311+
# of sage-conf, sage-setup, etc.) bump the version number, we need to
312+
# override this behavior. The pip install option --force-reinstall does too
313+
# much -- it also reinstalls all dependencies, which we do not want.
314+
wheel_basename="${wheel##*/}"
315+
distname="${wheel_basename%%-*}"
316+
$sudo sage-pip-uninstall "$distname"
317+
if [ $? -ne 0 ]; then
318+
echo "(ignoring error)" >&2
319+
fi
309320
$sudo sage-pip-install $root $pip_options "$wheel" || \
310321
sdh_die "Error installing ${wheel##*/}"
311322
if [ -n "${SAGE_PKG_DIR}" ]; then
@@ -316,11 +327,7 @@ sdh_store_and_pip_install_wheel() {
316327
}
317328

318329
sdh_pip_uninstall() {
319-
# --disable-pip-version-check: Don't periodically check PyPI to determine whether a new version of pip is available
320-
# --no-input: Disable prompting for input.
321-
# --yes: Don't ask for confirmation of uninstall deletions
322-
# See sage-pip-install for a discussion of the other flags.
323-
python3 -m pip uninstall --isolated --disable-pip-version-check --yes --no-input "$@"
330+
sage-pip-uninstall "$@"
324331
if [ $? -ne 0 ]; then
325332
echo "Warning: pip exited with status $?" >&2
326333
fi

build/bin/sage-pip-uninstall

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
# This command ensures that any previous installations of the same package
3+
# are uninstalled.
4+
5+
# Note: "sage-pip-uninstall" is meant to be run after $(PYTHON) has
6+
# been installed (either as an spkg or as a venv over a system python3).
7+
# It is then guaranteed by sage-env that PATH is set in a way that "python3"
8+
# refers to the correct python3.
9+
PYTHON=python3
10+
11+
# The PIP variable is only used to determine the name of the lock file.
12+
PIP=pip3
13+
14+
# We should avoid running pip while uninstalling a package because that
15+
# is prone to race conditions. Therefore, we use a lockfile while
16+
# running pip. This is implemented in the Python script sage-flock
17+
LOCK="$SAGE_LOCAL/var/lock/$PIP.lock"
18+
19+
# --disable-pip-version-check: Don't periodically check PyPI to determine whether a new version of pip is available
20+
# --no-input: Disable prompting for input.
21+
# --yes: Don't ask for confirmation of uninstall deletions
22+
# See sage-pip-install for a discussion of the other flags.
23+
sage-flock -x $LOCK $PYTHON -m pip uninstall --isolated --disable-pip-version-check --yes --no-input "$@"

build/make/Makefile.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,7 @@ python3-SAGE_VENV-no-deps: setuptools-clean
288288

289289
# Everything needed to start up Sage using "./sage". Of course, not
290290
# every part of Sage will work. It does not include Maxima for example.
291-
SAGERUNTIME = sagelib $(inst_ipython) $(inst_pexpect) \
292-
$(inst_psutil)
291+
SAGERUNTIME = sagelib $(inst_ipython) $(inst_pexpect)
293292

294293
all-sageruntime: toolchain-deps
295294
+$(MAKE_REC) $(SAGERUNTIME)

build/pkgs/4ti2/spkg-configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SAGE_SPKG_CONFIGURE([4ti2], [
2-
SAGE_SPKG_DEPCHECK([gmp mpir glpk zlib], [
2+
SAGE_SPKG_DEPCHECK([gmp glpk zlib], [
33
dnl Debian installs these programs with an executable prefix "4ti2-",
44
dnl OpenSUSE uses the prefix "4ti2_".
55
dnl Singular checks for unprefixed and prefixed with "4ti2-".

build/pkgs/argcomplete/type

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
optional
1+
standard

build/pkgs/configure/checksums.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=1df4c487d374a7ea9eeda3a9234cc6eed81c1443
3-
md5=83d4327261e545f26d4ad318030823e8
4-
cksum=2968565921
2+
sha1=ab6592f2216c48049bbbcfb3a42c3e157f44d917
3+
md5=fc3a50e0f47802e55969eade44648af4
4+
cksum=3704729867
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e8ab458165ec5e5832adf702099f47f4cff94596
1+
c5a87834e7e2939b878a5134cd240e6c712bd573

build/pkgs/gfortran/SPKG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Dependencies
2222
------------
2323

2424
- zlib
25-
- MPIR
25+
- GMP
2626
- MPFR
2727
- MPC
2828

build/pkgs/mpc/spkg-install.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cd src
22

33
# Unset CC and CFLAGS. This will make mpc use the same configuration
4-
# as MPIR, which is probably a good thing.
4+
# as GMP, which is probably a good thing.
55
unset CC
66
unset CFLAGS
77

build/pkgs/mpir/distros/void.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/SPKG.rst

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

build/pkgs/psutil/checksums.ini

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

build/pkgs/psutil/dependencies

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/distros/conda.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/distros/macports.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/distros/opensuse.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/distros/repology.txt

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

build/pkgs/psutil/install-requires.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/pkgs/psutil/package-version.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)