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

Commit 2113f78

Browse files
author
Matthias Koeppe
committed
Merge #31764
2 parents 8d3ad85 + 582b58d commit 2113f78

File tree

520 files changed

+29260
-6021
lines changed

Some content is hidden

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

520 files changed

+29260
-6021
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install relint
3131
run: pip install tox relint
3232
- name: Lint using relint
33-
run: tox -e relint src/
33+
run: tox -e relint src/sage/
3434
lint-pyright:
3535
name: Static type check with pyright
3636
runs-on: ubuntu-latest

.github/workflows/tox-experimental.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
fail-fast: false
3939
max-parallel: 6
4040
matrix:
41-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
41+
# This list is different from the one in tox.yml:
42+
# Trac #31526 switches gcc 4.x-based distributions to using the gcc_spkg configuration factor
43+
tox_system_factor: [ubuntu-trusty-gcc_spkg, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie-gcc_spkg, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17-gcc_spkg, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7-gcc_spkg, centos-8, gentoo, archlinux-latest, opensuse-15, opensuse-15.3, opensuse-tumbleweed, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-gcc_spkg]
4244
tox_packages_factor: [maximal]
4345
targets_pattern: [0-g, h-o, p, q-z]
4446
env:
@@ -112,54 +114,35 @@ jobs:
112114
fail-fast: false
113115
max-parallel: 3
114116
matrix:
115-
tox_system_factor: [homebrew-macos, conda-forge-macos]
116-
tox_packages_factor: [minimal, standard]
117+
tox_system_factor: [homebrew-macos, conda-forge-macos, homebrew-macos-python3_xcode]
118+
tox_packages_factor: [maximal]
117119
# As of 2021-03, default xcode is 12.4
118120
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
119121
xcode_version_factor: [default]
122+
targets_pattern: [0-g, h-o, p, q-z]
120123
os: [ macos-10.15, macos-11.0 ]
121124
include:
122125
# Test xcode 11.7 only on macos-10.15
123126
- tox_system_factor: homebrew-macos
124-
tox_packages_factor: minimal
127+
tox_packages_factor: maximal
125128
xcode_version_factor: 11.7
129+
targets_pattern: 0-g
126130
os: macos-10.15
127131
- tox_system_factor: homebrew-macos
128-
tox_packages_factor: standard
132+
tox_packages_factor: maximal
129133
xcode_version_factor: 11.7
134+
targets_pattern: h-o
130135
os: macos-10.15
131-
# python3_xcode is only accepted if enough packages are available from the system
132-
# --> to test "minimal", we will need https://trac.sagemath.org/ticket/30949
133-
- tox_system_factor: homebrew-macos-python3_xcode
134-
tox_packages_factor: standard
136+
- tox_system_factor: homebrew-macos
137+
tox_packages_factor: maximal
135138
xcode_version_factor: 11.7
139+
targets_pattern: p
136140
os: macos-10.15
137-
- tox_system_factor: homebrew-macos-python3_xcode
138-
tox_packages_factor: standard
139-
xcode_version_factor: default
141+
- tox_system_factor: homebrew-macos
142+
tox_packages_factor: maximal
143+
xcode_version_factor: 11.7
144+
targets_pattern: q-z
140145
os: macos-10.15
141-
- tox_system_factor: homebrew-macos-python3_xcode
142-
tox_packages_factor: standard
143-
xcode_version_factor: default
144-
os: macos-11.0
145-
- tox_system_factor: homebrew-macos-python3_xcode-nokegonly
146-
tox_packages_factor: standard
147-
xcode_version_factor: default
148-
os: macos-11.0
149-
# likewise for python3_pythonorg
150-
- tox_system_factor: homebrew-macos-python3_pythonorg
151-
tox_packages_factor: standard
152-
xcode_version_factor: default
153-
os: macos-11.0
154-
# conda-forge-macos-environment
155-
- tox_system_factor: conda-forge-macos
156-
tox_packages_factor: environment
157-
xcode_version_factor: default
158-
os: macos-11.0
159-
- tox_system_factor: conda-forge-macos
160-
tox_packages_factor: environment-optional
161-
xcode_version_factor: default
162-
os: macos-11.0
163146
env:
164147
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
165148
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}

.github/workflows/tox-optional.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
fail-fast: false
3939
max-parallel: 6
4040
matrix:
41-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
41+
# This list is different from the one in tox.yml:
42+
# Trac #31526 switches gcc 4.x-based distributions to using the gcc_spkg configuration factor
43+
tox_system_factor: [ubuntu-trusty-gcc_spkg, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie-gcc_spkg, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17-gcc_spkg, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7-gcc_spkg, centos-8, gentoo, archlinux-latest, opensuse-15, opensuse-15.3, opensuse-tumbleweed, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-gcc_spkg]
4244
tox_packages_factor: [maximal]
4345
targets_pattern: [0-g, h-o, p, q-z]
4446
env:
@@ -114,54 +116,35 @@ jobs:
114116
fail-fast: false
115117
max-parallel: 3
116118
matrix:
117-
tox_system_factor: [homebrew-macos, conda-forge-macos]
118-
tox_packages_factor: [minimal, standard]
119+
tox_system_factor: [homebrew-macos, conda-forge-macos, homebrew-macos-python3_xcode]
120+
tox_packages_factor: [maximal]
119121
# As of 2021-03, default xcode is 12.4
120122
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
121123
xcode_version_factor: [default]
124+
targets_pattern: [0-g, h-o, p, q-z]
122125
os: [ macos-10.15, macos-11.0 ]
123126
include:
124127
# Test xcode 11.7 only on macos-10.15
125128
- tox_system_factor: homebrew-macos
126-
tox_packages_factor: minimal
129+
tox_packages_factor: maximal
127130
xcode_version_factor: 11.7
131+
targets_pattern: 0-g
128132
os: macos-10.15
129133
- tox_system_factor: homebrew-macos
130-
tox_packages_factor: standard
134+
tox_packages_factor: maximal
131135
xcode_version_factor: 11.7
136+
targets_pattern: h-o
132137
os: macos-10.15
133-
# python3_xcode is only accepted if enough packages are available from the system
134-
# --> to test "minimal", we will need https://trac.sagemath.org/ticket/30949
135-
- tox_system_factor: homebrew-macos-python3_xcode
136-
tox_packages_factor: standard
138+
- tox_system_factor: homebrew-macos
139+
tox_packages_factor: maximal
137140
xcode_version_factor: 11.7
141+
targets_pattern: p
138142
os: macos-10.15
139-
- tox_system_factor: homebrew-macos-python3_xcode
140-
tox_packages_factor: standard
141-
xcode_version_factor: default
143+
- tox_system_factor: homebrew-macos
144+
tox_packages_factor: maximal
145+
xcode_version_factor: 11.7
146+
targets_pattern: q-z
142147
os: macos-10.15
143-
- tox_system_factor: homebrew-macos-python3_xcode
144-
tox_packages_factor: standard
145-
xcode_version_factor: default
146-
os: macos-11.0
147-
- tox_system_factor: homebrew-macos-python3_xcode-nokegonly
148-
tox_packages_factor: standard
149-
xcode_version_factor: default
150-
os: macos-11.0
151-
# likewise for python3_pythonorg
152-
- tox_system_factor: homebrew-macos-python3_pythonorg
153-
tox_packages_factor: standard
154-
xcode_version_factor: default
155-
os: macos-11.0
156-
# conda-forge-macos-environment
157-
- tox_system_factor: conda-forge-macos
158-
tox_packages_factor: environment
159-
xcode_version_factor: default
160-
os: macos-11.0
161-
- tox_system_factor: conda-forge-macos
162-
tox_packages_factor: environment-optional
163-
xcode_version_factor: default
164-
os: macos-11.0
165148
env:
166149
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
167150
LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
fail-fast: false
3939
max-parallel: 20
4040
matrix:
41-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
41+
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, gentoo-python3.7, archlinux-latest, opensuse-15, opensuse-15.3, opensuse-tumbleweed, slackware-14.2, conda-forge, ubuntu-bionic-i386, manylinux-2_24-i686, debian-buster-i386, centos-7-i386]
4242
tox_packages_factor: [minimal, standard]
4343
env:
4444
TOX_ENV: docker-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
/src/environment.yml
2424
/src/environment-optional.yml
2525

26+
/src/setup.cfg
27+
/src/requirements.txt
28+
/src/pyproject.toml
29+
/src/Pipfile
30+
/src/Pipfile.lock
31+
/Pipfile
32+
/Pipfile.lock
33+
2634
# Various editors
2735
*~
2836

@@ -93,6 +101,9 @@ __pycache__/
93101
*.py[cod]
94102
*$py.class
95103

104+
# Generated by sage_setup.autogen
105+
/src/sage/ext/interpreters
106+
96107
# Generated Cython files
97108
*.so
98109
src/sage/**/*.c
@@ -103,6 +114,7 @@ src/sage/modular/arithgroup/farey_symbol.h
103114
!src/sage/graphs/cliquer/cl.c
104115
!src/sage/graphs/graph_decompositions/sage_tdlib.cpp
105116
!src/sage/libs/eclib/wrap.cpp
117+
!src/sage/libs/linkages/padics/relaxed/flint_helper.c
106118
!src/sage/misc/inherit_comparison_impl.c
107119
!src/sage/modular/arithgroup/farey.cpp
108120
!src/sage/modular/arithgroup/sl2z.cpp
@@ -130,6 +142,14 @@ build/bin/sage-build-env-config
130142
/build/pkgs/*/src/*.egg-info
131143
/build/pkgs/*/src/.tox
132144

145+
# Generated by docbuild
146+
/src/doc/en/reference/*/sage
147+
/src/doc/en/reference/sage
148+
/src/doc/en/reference/spkg/*.rst
149+
/src/doc/output
150+
/src/doc/en/installation/*.txt
151+
/src/doc/en/reference/repl/*.txt
152+
133153
# Distribution / packaging
134154
src/*.egg-info/
135155
/src/.cython_version
@@ -152,5 +172,8 @@ src/venv.bak/
152172

153173
# tox generated files
154174
/.tox
175+
/build/.tox
155176
/prefix
177+
178+
# git worktree
156179
worktree*

.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.rc5",
5-
"version": "9.3.rc5",
4+
"title": "sagemath/sage: 9.4.beta2",
5+
"version": "9.4.beta2",
66
"upload_type": "software",
7-
"publication_date": "2021-04-30",
7+
"publication_date": "2021-06-19",
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.rc5",
18+
"identifier": "https://github.com/sagemath/sage/tree/9.4.beta2",
1919
"relation": "isSupplementTo"
2020
},
2121
{

Pipfile.m4

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Pipfile with all packages in the Sage distribution and version information locked
2+
## FIXME: Many packages still missing.
3+
[[source]]
4+
name = "pypi"
5+
url = "https://pypi.org/simple"
6+
verify_ssl = true
7+
8+
[dev-packages]
9+
pkgconfig = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../pkgconfig/package-version.txt)')"
10+
cython = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cython/package-version.txt)')"
11+
pycodestyle = "*"
12+
ipykernel = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../ipykernel/package-version.txt)')"
13+
tox = "*"
14+
jinja2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../jinja2/package-version.txt)')"
15+
pytest = "*"
16+
ipywidgets = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../ipywidgets/package-version.txt)')"
17+
sphinx = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../sphinx/package-version.txt)')"
18+
rope = "*"
19+
six = "*"
20+
jupyter-core = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../jupyter_core/package-version.txt)')"
21+
22+
[packages]
23+
numpy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../numpy/package-version.txt)')"
24+
cysignals = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cysignals/package-version.txt)')"
25+
cypari2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cypari/package-version.txt)')"
26+
gmpy2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../gmpy2/package-version.txt)')"
27+
psutil = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../psutil/package-version.txt)')"
28+
pexpect = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../pexpect/package-version.txt)')"
29+
ipython = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../ipython/package-version.txt)')"
30+
sympy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../sympy/package-version.txt)')"
31+
scipy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../scipy/package-version.txt)')"
32+
pplpy = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../pplpy/package-version.txt)')"
33+
matplotlib = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../matplotlib/package-version.txt)')"
34+
cvxopt = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../cvxopt/package-version.txt)')"
35+
rpy2 = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../rpy2/package-version.txt)')"
36+
networkx = "==esyscmd(`printf $(sed "s/[.]p.*//;" ../networkx/package-version.txt)')"
37+
38+
sagemath-standard = { path = "src" }
39+
40+
[requires]
41+
python_version = "3.9"

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.3.rc5, Release Date: 2021-04-30
1+
SageMath version 9.4.beta2, Release Date: 2021-06-19

bootstrap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
# Set SAGE_ROOT to the path to this file and then cd into it
2626
SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"
27+
export SAGE_ROOT
2728
cd "$SAGE_ROOT"
2829

2930
export PATH="$SAGE_ROOT/build/bin:$PATH"
@@ -108,6 +109,10 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')"
108109
done
109110
echo "$spkg_configures" >> m4/sage_spkg_configures.m4
110111

112+
for pkgname in $(./sage --package list --has-file bootstrap); do
113+
(cd build/pkgs/$pkgname && ./bootstrap) || exit 1
114+
done
115+
111116
# Default to no filter if "-q" was not passed.
112117
QUIET_SED_FILTER=""
113118
if [ "${BOOTSTRAP_QUIET}" = "yes" ]; then
@@ -119,8 +124,6 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')"
119124
# ONLY stderr, and to re-output the results back to stderr leaving
120125
# stdout alone. Basically we swap the two descriptors using a
121126
# third, filter, and then swap them back.
122-
BOOTSTRAP_QUIET="${BOOTSTRAP_QUIET}" \
123-
SAGE_ROOT="$SAGE_ROOT" \
124127
src/doc/bootstrap && \
125128
install_config_rpath && \
126129
aclocal -I m4 && \
@@ -262,6 +265,7 @@ do
262265
?) usage; exit 2;;
263266
esac
264267
done
268+
export BOOTSTRAP_QUIET
265269
CONFBALL="upstream/configure-$CONFVERSION.tar.gz"
266270

267271
if [ $DOWNLOAD$SAVE = yesyes ]; then

build/bin/sage-dist-helpers

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
#
4040
# - sdh_configure [...]
4141
#
42-
# Runs `./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"`,
43-
# (for autoconf'd projects with extra
44-
# --disable-maintainer-mode --disable-dependency-tracking)
45-
# Additional arguments to `./configure` may be given as arguments.
42+
# Runs `./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib"`
43+
# --disable-static, (for autoconf'd projects with extra
44+
# --disable-maintainer-mode --disable-dependency-tracking) Additional
45+
# arguments to `./configure` may be given as arguments.
4646
#
4747
# - sdh_make [...]
4848
#
@@ -160,9 +160,16 @@ sdh_configure() {
160160
if [ -z "$CONFIG_SHELL" ]; then
161161
export CONFIG_SHELL=`command -v bash`
162162
fi
163-
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" --disable-maintainer-mode --disable-dependency-tracking "$@"
163+
if [ "$UNAME" = "CYGWIN" ]; then
164+
# TODO: To use --disable-static for all packages on Cygwin, need
165+
# #30814: Cygwin: Fix remaining packages to build shared libraries, using AM_LDFLAGS=-no-undefined
166+
DISABLE_STATIC=
167+
else
168+
DISABLE_STATIC=--disable-static
169+
fi
170+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" $DISABLE_STATIC --disable-maintainer-mode --disable-dependency-tracking "$@"
164171
if [ $? -ne 0 ]; then # perhaps it is a non-autoconf'd project
165-
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" "$@"
172+
./configure --prefix="$SAGE_INST_LOCAL" --libdir="$SAGE_INST_LOCAL/lib" $DISABLE_STATIC "$@"
166173
if [ $? -ne 0 ]; then
167174
if [ -f "$(pwd)/config.log" ]; then
168175
sdh_die <<_EOF_
@@ -211,14 +218,6 @@ sdh_setup_bdist_wheel() {
211218

212219
sdh_pip_install() {
213220
echo "Installing $PKG_NAME"
214-
if [ -n "$SAGE_DESTDIR" ]; then
215-
local sudo=""
216-
else
217-
local sudo="$SAGE_SUDO"
218-
fi
219-
$sudo sage-pip-uninstall "$@" || \
220-
echo 2>&1 "Warning: Failure trying to uninstall a previous version of $PKG_NAME"
221-
222221
mkdir -p dist
223222
rm -f dist/*.whl
224223
python3 -m pip wheel --wheel-dir=dist --no-binary :all: --verbose --no-deps --no-index --isolated --no-build-isolation "$@" || \

0 commit comments

Comments
 (0)