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

Commit 07f5cde

Browse files
author
Matthias Koeppe
committed
build/pkgs/sagelib/spkg-install: Use helper function sdh_pip_editable_install
1 parent 4541564 commit 07f5cde

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build/pkgs/sagelib/spkg-install

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/usr/bin/env bash
2+
# From sage-spkg.
3+
# For type=script packages, the build rule in build/make/Makefile sources
4+
# sage-env but not sage-dist-helpers.
5+
lib="$SAGE_ROOT/build/bin/sage-dist-helpers"
6+
source "$lib"
7+
if [ $? -ne 0 ]; then
8+
echo >&2 "Error: failed to source $lib"
9+
echo >&2 "Is $SAGE_ROOT the correct SAGE_ROOT?"
10+
exit 1
11+
fi
12+
213
if [ "$SAGE_EDITABLE" = yes ]; then
314
cd "$SAGE_SRC"
415
else
@@ -52,7 +63,7 @@ if [ "$SAGE_EDITABLE" = yes ]; then
5263
# and renamed the distribution to "sagemath-standard"). There is no clean way to uninstall
5364
# them, so we just use rm.
5465
(cd "$SITEPACKAGESDIR" && rm -rf sage sage_setup sage-[1-9]*.egg-info sage-[1-9]*.dist-info)
55-
time python3 -m pip install --verbose --no-deps --no-index --no-build-isolation --isolated --editable . || exit 1
66+
time sdh_pip_editable_install .
5667
else
5768
# Make sure that an installed old version of sagelib in which sage is an ordinary package
5869
# does not shadow the namespace package sage during the build.

0 commit comments

Comments
 (0)