Commit 3c646974 authored by Ian Stapleton Cordasco's avatar Ian Stapleton Cordasco Committed by Kenneth Reitz

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
parent df6c8c78
...@@ -42,7 +42,7 @@ export VENDOR_URL ...@@ -42,7 +42,7 @@ export VENDOR_URL
# Python defaults # Python defaults
DEFAULT_PYTHON_VERSION="python-3.6.4" DEFAULT_PYTHON_VERSION="python-3.6.4"
LATEST_3="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" DEFAULT_PYTHON_STACK="cedar-14"
PIP_UPDATE="9.0.2" PIP_UPDATE="9.0.2"
......
#!/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 '{}' +
python-2.7.14 python-2.7.15
\ No newline at end of file
...@@ -77,7 +77,7 @@ testPylibmc() { ...@@ -77,7 +77,7 @@ testPylibmc() {
testPython2() { testPython2() {
compile "python2" compile "python2"
assertCaptured "python-2.7.14" assertCaptured "python-2.7.15"
assertCapturedSuccess assertCapturedSuccess
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment