Skip to content

Commit 9a3c1fa

Browse files
committed
Build Python 3.6.6 and 3.7.0
Add runtime build recipes for our newly released versions Closes gh-720 Closes gh-721
1 parent d18f1fe commit 9a3c1fa

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

builds/runtimes/python-3.6.6

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/3.6.6/Python-3.6.6.tgz'
9+
curl -L $SOURCE_TARBALL | tar xz
10+
mv Python-3.6.6 src
11+
cd src
12+
13+
./configure --prefix=$OUT_PREFIX --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 '{}' +
20+
21+
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python

builds/runtimes/python-3.7.0

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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/3.7.0/Python-3.7.0.tgz'
9+
curl -L $SOURCE_TARBALL | tar xz
10+
mv Python-3.7.0 src
11+
cd src
12+
13+
./configure --prefix=$OUT_PREFIX --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 '{}' +
20+
21+
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python

0 commit comments

Comments
 (0)