Skip to content

Commit 3c64697

Browse files
sigmavirus24kennethreitz
authored andcommitted
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
1 parent df6c8c7 commit 3c64697

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

bin/compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export VENDOR_URL
4242
# Python defaults
4343
DEFAULT_PYTHON_VERSION="python-3.6.4"
4444
LATEST_3="python-3.6.4"
45-
LATEST_2="python-2.7.14"
45+
LATEST_2="python-2.7.15"
4646

4747
DEFAULT_PYTHON_STACK="cedar-14"
4848
PIP_UPDATE="9.0.2"

builds/runtimes/python-2.7.15

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
# Build Path: /app/.heroku/python/
3+
# Build Deps: libraries/sqlite
4+
5+
OUT_PREFIX=$1
6+
7+
echo "Building Python…"
8+
SOURCE_TARBALL='https://python.org/ftp/python/2.7.15/Python-2.7.15.tgz'
9+
curl -L $SOURCE_TARBALL | tar xz
10+
mv Python-2.7.15 src
11+
cd src
12+
13+
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
14+
make
15+
make install
16+
17+
# Remove unneeded test directories, similar to the official Docker Python images:
18+
# https://github.com/docker-library/python
19+
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +

test/fixtures/python2/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-2.7.14
1+
python-2.7.15

test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ testPylibmc() {
7777

7878
testPython2() {
7979
compile "python2"
80-
assertCaptured "python-2.7.14"
80+
assertCaptured "python-2.7.15"
8181
assertCapturedSuccess
8282
}
8383

0 commit comments

Comments
 (0)