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

Commit 42f4458

Browse files
author
Matthias Koeppe
committed
Merge tag '9.3.beta7' into t/31064/ci_cygwin__yml__adjust_to_new_script_packages__bootstrap___prereq
SageMath version 9.3.beta7, Release Date: 2021-02-07
2 parents a5e4051 + 8453ffb commit 42f4458

File tree

643 files changed

+7388
-5088
lines changed

Some content is hidden

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

643 files changed

+7388
-5088
lines changed

.github/workflows/ci-cygwin-minimal.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
push:
77
tags:
88
- '*'
9+
workflow_dispatch:
10+
# Allow to run manually
911

1012
env:
1113
MAKE: make -j8

.github/workflows/ci-cygwin-standard.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
push:
77
tags:
88
- '*'
9+
workflow_dispatch:
10+
# Allow to run manually
911

1012
env:
1113
MAKE: make -j8

.github/workflows/ci-wsl.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches:
1010
- 'public/build/**wsl**'
1111
workflow_dispatch:
12+
# Allow to run manually
1213

1314
jobs:
1415
windows:

.github/workflows/lint.yml

+2-2
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/

.github/workflows/tox-experimental.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
push:
2424
tags:
2525
- '*'
26+
workflow_dispatch:
27+
# Allow to run manually
2628

2729
env:
2830
TARGETS_PRE: build/make/Makefile

.github/workflows/tox-gcc_spkg.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
push:
2424
tags:
2525
- '*'
26+
workflow_dispatch:
27+
# Allow to run manually
2628

2729
env:
2830
TARGETS_PRE: sagelib-build-deps

.github/workflows/tox-optional.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
push:
2424
tags:
2525
- '*'
26+
workflow_dispatch:
27+
# Allow to run manually
2628

2729
env:
2830
TARGETS_PRE: build/make/Makefile

.github/workflows/tox.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
push:
2424
tags:
2525
- '*'
26+
workflow_dispatch:
27+
# Allow to run manually
2628

2729
env:
2830
TARGETS_PRE: sagelib-build-deps

.zenodo.json

+4-4
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.beta7",
5+
"version": "9.3.beta7",
66
"upload_type": "software",
7-
"publication_date": "2020-12-27",
7+
"publication_date": "2021-02-07",
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.beta7",
1919
"relation": "isSupplementTo"
2020
},
2121
{

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,11 @@ install: all
259259
@echo "from https://github.com/sagemath/binary-pkg"
260260
@echo "******************************************************************"
261261

262+
# Setting SAGE_PKGCONFIG is only so that make does not exit with
263+
# "This Makefile needs to be invoked by build/make/install".
262264
list:
263265
@$(MAKE) --silent build/make/Makefile >&2
264-
@$(MAKE) --silent -f build/make/Makefile SAGE_SPKG_INST=local $@
266+
@$(MAKE) --silent -f build/make/Makefile SAGE_PKGCONFIG=dummy $@
265267

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

README.md

+3-2
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

+1-1
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.beta7, Release Date: 2021-02-07

build/bin/sage-dist-helpers

+6-6
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_
@@ -204,7 +204,7 @@ sdh_setup_bdist_wheel() {
204204
mkdir -p dist
205205
rm -f dist/*.whl
206206
BDIST_DIR="$(mktemp -d)"
207-
sage-python23 setup.py --no-user-cfg \
207+
python3 setup.py --no-user-cfg \
208208
bdist_wheel --bdist-dir "$BDIST_DIR" \
209209
"$@" || sdh_die "Error building a wheel for $PKG_NAME"
210210
}
@@ -221,7 +221,7 @@ sdh_pip_install() {
221221

222222
mkdir -p dist
223223
rm -f dist/*.whl
224-
sage-python23 -m pip wheel --wheel-dir=dist --no-binary :all: --verbose --no-deps --no-index --isolated --no-build-isolation "$@" || \
224+
python3 -m pip wheel --wheel-dir=dist --no-binary :all: --verbose --no-deps --no-index --isolated --no-build-isolation "$@" || \
225225
sdh_die "Error building a wheel for $PKG_NAME"
226226

227227
sdh_store_and_pip_install_wheel .
@@ -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-pip-install

+8-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
# ~/.pydistutils.cfg
1515
pip_install_flags="--ignore-installed --verbose --no-deps --no-index --isolated"
1616

17-
# Note: We need to take care to specify the full path to Sage's Python here
18-
# to emphasize that this command should use it, and not the system Python;
19-
# see https://trac.sagemath.org/ticket/18438
20-
# But now we delegate this to sage-python23.
21-
PYTHON=sage-python23
17+
# Note: "sage-pip-install" is meant to be run after $(PYTHON) has
18+
# been installed (either as an spkg or as a venv over a system python3).
19+
# It is then guaranteed by sage-env that PATH is set in a way that "python3"
20+
# refers to the correct python3.
21+
#
22+
# All SPKGs that use this script must therefore declare $(PYTHON) as a
23+
# dependency.
24+
PYTHON=python3
2225

2326
# The PIP variable is only used to determine the name of the lock file.
2427
PIP=pip3

build/bin/sage-pip-uninstall

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ if [ "$1" != "." ]; then
1212
exit 1
1313
fi
1414

15-
# Note: We need to take care to specify the full path to Sage's Python here
16-
# to emphasize that this command should use it, and not the system Python;
17-
# see https://trac.sagemath.org/ticket/18438
18-
# But now we delegate this to sage-python23.
19-
PYTHON=sage-python23
15+
# Note: "sage-pip-uninstall" is meant to be run after $(PYTHON) has
16+
# been installed (either as an spkg or as a venv over a system python3).
17+
# It is then guaranteed by sage-env that PATH is set in a way that "python3"
18+
# refers to the correct python3.
19+
PYTHON=python3
2020

2121
# The PIP variable is only used to determine the name of the lock file.
2222
PIP=pip3

build/bin/sage-print-system-package-command

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ case $system:$command in
120120
freebsd*:install)
121121
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}pkg install $system_packages"
122122
;;
123+
nix*:install)
124+
[ -n "$system_packages" ] && echo "${PROMPT}nix-env --install $system_packages"
125+
;;
123126
pip:install)
124127
[ -n "$system_packages" ] && echo "${PROMPT}sage -pip install $system_packages"
125128
;;

build/bin/sage-python23

-27
This file was deleted.

build/bin/sage-sdist

+2-1
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

0 commit comments

Comments
 (0)