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

Commit 171b7c6

Browse files
author
Matthias Koeppe
committedMay 7, 2022
build/pkgs/sagemath_objects/spkg-install: When ensurepip is not available, fall back to using build --no-isolation
1 parent b03779d commit 171b7c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎build/pkgs/sagemath_objects/spkg-install

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS"
1919
# (Important because sagemath-objects uses MANIFEST.in for filtering.)
2020
# Do not install the wheel.
2121
DIST_DIR="$(mktemp -d)"
22-
python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
22+
if ! python3 -m build --outdir "$DIST_DIR"/dist .; then
23+
# This happens on Debian without python3-venv installed - "ensurepip" is missing
24+
echo "Falling back to --no-isolation"
25+
python3 -m build --no-isolation --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel"
26+
fi
2327

2428
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel)
2529

0 commit comments

Comments
 (0)
This repository has been archived.