Skip to content

Commit 738973d

Browse files
Specify path to virtualenv's python2.7 to fix shebang limit on hosts with long build paths
1 parent cb374b8 commit 738973d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ if [ -d ${srcdir} ]; then
8585
fi
8686
source ${venvdir}/bin/activate
8787

88-
${venvdir}/bin/pip install pex requests
88+
${venvdir}/bin/python2.7 ${venvdir}/bin/pip install pex requests
8989
if [ $? -gt 0 ]; then
9090
echo "Failed to install pex utility for building!"
9191
exit 1
9292
fi
9393

9494
[ ! -d ${bindir} ] && mkdir -p ${bindir}
95-
${venvdir}/bin/pex --disable-cache -o ${output_file} -m ${py_entry_point} -r ${require_file} ${builddir}
95+
${venvdir}/bin/python2.7 ${venvdir}/bin/pex --disable-cache -o ${output_file} -m ${py_entry_point} -r ${require_file} ${builddir}
9696
if [ $? -lt 1 ] && [ -x ${output_file} ]; then
9797
echo "pex executable written to '$output_file'"
9898
rm -rf ${builddir}

0 commit comments

Comments
 (0)