Skip to content

Commit 0a169e7

Browse files
committed
fix extra slash in python install location
1 parent 2f430ab commit 0a169e7

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Python Buildpack Changelog
22

3+
# 142 (2018-10-22)
4+
5+
Python 3.7.1, 3.6.7 and 3.5.6 now available on all Heroku stacks.
6+
37
# 141 (2018-10-10)
48

59
Switch to cautious upgrade for Pipenv install to ensure the pinned pip version

builds/runtimes/python-3.5.6

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
1515
echo "Building Python…"
1616
SOURCE_TARBALL='https://python.org/ftp/python/3.5.6/Python-3.5.6.tgz'
1717
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.0 src
18+
mv Python-3.5.6 src
1919
cd src
2020

2121
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
@@ -26,4 +26,7 @@ make install
2626
# https://github.com/docker-library/python
2727
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
2828

29-
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
29+
# Remove spare /
30+
LOCATION=${OUT_PREFIX%?}
31+
32+
ln $LOCATION/bin/python3 $LOCATION/bin/python

builds/runtimes/python-3.6.7

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
1515
echo "Building Python…"
1616
SOURCE_TARBALL='https://python.org/ftp/python/3.6.7/Python-3.6.7.tgz'
1717
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.0 src
18+
mv Python-3.6.7 src
1919
cd src
2020

2121
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
@@ -26,4 +26,7 @@ make install
2626
# https://github.com/docker-library/python
2727
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
2828

29-
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
29+
# Remove spare /
30+
LOCATION=${OUT_PREFIX%?}
31+
32+
ln $LOCATION/bin/python3 $LOCATION/bin/python

builds/runtimes/python-3.7.1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
1515
echo "Building Python…"
1616
SOURCE_TARBALL='https://python.org/ftp/python/3.7.1/Python-3.7.1.tgz'
1717
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.0 src
18+
mv Python-3.7.1 src
1919
cd src
2020

2121
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
@@ -26,4 +26,7 @@ make install
2626
# https://github.com/docker-library/python
2727
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
2828

29-
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
29+
# Remove spare /
30+
LOCATION=${OUT_PREFIX%?}
31+
32+
ln $LOCATION/bin/python3 $LOCATION/bin/python

0 commit comments

Comments
 (0)