Skip to content

Commit 959ac57

Browse files
author
Ryan Moran
committed
Use python2 explicitly when running the buildpack
1 parent 62ab803 commit 959ac57

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

bin/detect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
BP=$(dirname $(dirname $0))
2424
export PYTHONPATH=$BP/lib
2525
VERSION=`cat $BP/VERSION`
26-
python $BP/scripts/detect.py $1 $VERSION
26+
python2 $BP/scripts/detect.py $1 $VERSION

bin/finalize

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ for env_var in $env_vars; do
4343
done
4444

4545
export PYTHONPATH=$BP/lib
46+
unset PYTHONHOME
4647

47-
python $BP/scripts/compile.py $BUILD_DIR $CACHE_DIR
48+
python2 $BP/scripts/compile.py $BUILD_DIR $CACHE_DIR
4849

4950
pushd $BUILD_DIR/.profile.d > /dev/null
5051
for f in *; do mv "$f" "finalize_$f"; done

bin/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
BP=$(dirname $(dirname $0))
2424
export PYTHONPATH=$BP/lib
2525

26-
python $BP/scripts/release.py $1
26+
python2 $BP/scripts/release.py $1

bin/rewrite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python2
22

33
# Licensed to the Apache Software Foundation (ASF) under one or more
44
# contributor license agreements. See the NOTICE file distributed with

bin/start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python2
22

33
# Licensed to the Apache Software Foundation (ASF) under one or more
44
# contributor license agreements. See the NOTICE file distributed with

0 commit comments

Comments
 (0)