Add Python 2.7.15 to the list of runtimes (#692)

* Add Python 2.7.15 to the list of runtimes

Closes #691

* Update the default Python 2 to 2.7.15 everywhere
This commit is contained in:
Ian Stapleton Cordasco
2018-05-01 09:27:32 -05:00
committed by Kenneth Reitz
parent df6c8c78af
commit 3c64697472
4 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export VENDOR_URL
# Python defaults
DEFAULT_PYTHON_VERSION="python-3.6.4"
LATEST_3="python-3.6.4"
LATEST_2="python-2.7.14"
LATEST_2="python-2.7.15"
DEFAULT_PYTHON_STACK="cedar-14"
PIP_UPDATE="9.0.2"
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python/
# Build Deps: libraries/sqlite
OUT_PREFIX=$1
echo "Building Python…"
SOURCE_TARBALL='https://python.org/ftp/python/2.7.15/Python-2.7.15.tgz'
curl -L $SOURCE_TARBALL | tar xz
mv Python-2.7.15 src
cd src
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
make
make install
# Remove unneeded test directories, similar to the official Docker Python images:
# https://github.com/docker-library/python
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
+1 -1
View File
@@ -1 +1 @@
python-2.7.14
python-2.7.15
+1 -1
View File
@@ -77,7 +77,7 @@ testPylibmc() {
testPython2() {
compile "python2"
assertCaptured "python-2.7.14"
assertCaptured "python-2.7.15"
assertCapturedSuccess
}