* buildpack-deps:stretch has Python 3.5 installed which is detected before our custom Python 2.7 in these scripts. Search only in /usr/local/bin
@@ -3,7 +3,7 @@ set -e
python=
for c in pypy3 pypy python3 python; do
- if command -v "$c" > /dev/null; then
+ if PATH=/usr/local/bin command -v "$c" > /dev/null; then
python="$c"
break
fi
@@ -6,7 +6,7 @@ runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
source "$runDir/run-in-container.sh" "$testDir" "$1" sh -ec '
exec "$c" "$@"
done