File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ HOME="${PYTHON_BUILD_DIR}" make -j"$NPROC" DESTDIR="$APPDIR" install
129129if [ ! -z " ${PIP_REQUIREMENTS} " ]; then
130130 cd " ${APPDIR} /${prefix} /bin"
131131 pythons=( " python" ? " ." ? )
132+ HOME=" ${PYTHON_BUILD_DIR} " PYTHONHOME=$( readlink -f ${PWD} /..) ./${pythons[0]} -m pip install --upgrade pip
132133 HOME=" ${PYTHON_BUILD_DIR} " PYTHONHOME=$( readlink -f ${PWD} /..) ./${pythons[0]} -m pip install ${PIP_OPTIONS} ${PIP_REQUIREMENTS}
133134fi
134135
@@ -162,7 +163,7 @@ cd "$APPDIR/${prefix}/bin"
162163for exe in $( ls " ${APPDIR} /${prefix} /bin" * )
163164do
164165 if [[ -f " $exe " ]] && [[ -x " $exe " ]]; then
165- sed -i ' 1s|^#!.*\(python[0-9.]*\)|#!/bin/sh\n"exec" "$(dirname $(readlink -f $\{0\}))/../../bin/\1" "$0" "$@"|' " $exe "
166+ sed -i ' 1s|^#!.*\(python[0-9.]*\).* |#!/bin/sh\n"exec" "$(dirname $(readlink -f $\{0\}))/../../bin/\1" "$0" "$@"|' " $exe "
166167 fi
167168done
168169
You can’t perform that action at this time.
0 commit comments