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

Commit a292013

Browse files
author
Matthias Koeppe
committed
build/bin/sage-dist-helpers (sdh_pip_editable_install), build/pkgs/sagelib/spkg-install: Do not use PEP 660 editable wheels
1 parent c06ecec commit a292013

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build/bin/sage-dist-helpers

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ sdh_pip_install() {
290290

291291
sdh_pip_editable_install() {
292292
echo "Installing $PKG_NAME (editable mode)"
293+
# Until https://trac.sagemath.org/ticket/34209 switches us to PEP 660 editable wheels
294+
export SETUPTOOLS_ENABLE_FEATURE=legacy-editable
293295
python3 -m pip install --verbose --no-deps --no-index --no-build-isolation --isolated --editable "$@" || \
294296
sdh_die "Error installing $PKG_NAME"
295297
}

build/pkgs/sagelib/spkg-install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ if [ "$SAGE_EDITABLE" = yes ]; then
5252
# and renamed the distribution to "sagemath-standard"). There is no clean way to uninstall
5353
# them, so we just use rm.
5454
(cd "$SITEPACKAGESDIR" && rm -rf sage sage_setup sage-[1-9]*.egg-info sage-[1-9]*.dist-info)
55+
# Until https://trac.sagemath.org/ticket/34209 switches us to PEP 660 editable wheels
56+
export SETUPTOOLS_ENABLE_FEATURE=legacy-editable
5557
time python3 -m pip install --verbose --no-deps --no-index --no-build-isolation --isolated --editable . || exit 1
5658
else
5759
# Make sure that an installed old version of sagelib in which sage is an ordinary package

0 commit comments

Comments
 (0)