Skip to content

Commit d958ee9

Browse files
authored
templates: python environment variable PYTHON_PREFIX
1 parent bdfcd22 commit d958ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/16-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ build_python_build() {
2222
BUILD_FINAL
2323
abinfo "Installing Python (PyPI) package using $PYTHON ..."
2424
"$PYTHON" "$SRCDIR"/setup.py install \
25-
--prefix=/usr --root="$PKGDIR" --optimize=1 \
25+
--prefix=${PYTHON_PREFIX:-$PREFIX} --root="$PKGDIR" --optimize=1 \
2626
|| abdie "Failed to install Python (PyPI) package using ${PYTHON}: $?."
2727
abinfo "Cleaning Python (PyPI) package source tree ..."
2828
bool "$NOPYTHONCLEAN" \

0 commit comments

Comments
 (0)