Skip to content

Commit 7686370

Browse files
authored
Merge pull request heroku#878 from heroku/python-versions/373-370
Python formula updates: 3.7.3-3.7.0
2 parents 2d69904 + f28465b commit 7686370

File tree

5 files changed

+5
-114
lines changed

5 files changed

+5
-114
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- Sqlite fix:
66
- Update Python3 base formula
7-
- Update Python formulas 3.6.x, 3.7.4
7+
- Update Python formulas 3.6.x, 3.7.x
88
- Test staged binaries on Travis
99

1010
--------------------------------------------------------------------------------

builds/runtimes/python-3.7.0

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
11
#!/usr/bin/env bash
22
# Build Path: /app/.heroku/python/
33

4-
OUT_PREFIX=$1
5-
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
6-
export BIN_DIR
7-
8-
# shellcheck source=bin/utils
9-
source "$BIN_DIR/steps/sqlite3"
10-
11-
sqlite3_version
12-
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
13-
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
14-
15-
echo "Building Python…"
16-
SOURCE_TARBALL='https://python.org/ftp/python/3.7.0/Python-3.7.0.tgz'
17-
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.0 src
19-
cd src
20-
21-
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
22-
make
23-
make install
24-
25-
# Remove unneeded test directories, similar to the official Docker Python images:
26-
# https://github.com/docker-library/python
27-
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
28-
29-
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
4+
source $(dirname $0)/python3

builds/runtimes/python-3.7.1

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
11
#!/usr/bin/env bash
22
# Build Path: /app/.heroku/python/
33

4-
OUT_PREFIX=$1
5-
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
6-
export BIN_DIR
7-
8-
# shellcheck source=bin/utils
9-
source "$BIN_DIR/steps/sqlite3"
10-
11-
sqlite3_version
12-
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
13-
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
14-
15-
echo "Building Python…"
16-
SOURCE_TARBALL='https://python.org/ftp/python/3.7.1/Python-3.7.1.tgz'
17-
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.1 src
19-
cd src
20-
21-
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
22-
make
23-
make install
24-
25-
# Remove unneeded test directories, similar to the official Docker Python images:
26-
# https://github.com/docker-library/python
27-
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
28-
29-
# Remove spare /
30-
LOCATION=${OUT_PREFIX%?}
31-
32-
ln $LOCATION/bin/python3 $LOCATION/bin/python
4+
source $(dirname $0)/python3

builds/runtimes/python-3.7.2

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
11
#!/usr/bin/env bash
22
# Build Path: /app/.heroku/python/
33

4-
OUT_PREFIX=$1
5-
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
6-
export BIN_DIR
7-
8-
# shellcheck source=bin/utils
9-
source "$BIN_DIR/steps/sqlite3"
10-
11-
sqlite3_version
12-
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
13-
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
14-
15-
echo "Building Python…"
16-
SOURCE_TARBALL='https://python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
17-
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.2 src
19-
cd src
20-
21-
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
22-
make
23-
make install
24-
25-
# Remove unneeded test directories, similar to the official Docker Python images:
26-
# https://github.com/docker-library/python
27-
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
28-
29-
# Remove spare /
30-
LOCATION=${OUT_PREFIX%?}
31-
32-
ln $LOCATION/bin/python3 $LOCATION/bin/python
4+
source $(dirname $0)/python3

builds/runtimes/python-3.7.3

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
11
#!/usr/bin/env bash
22
# Build Path: /app/.heroku/python/
33

4-
OUT_PREFIX=$1
5-
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
6-
export BIN_DIR
7-
8-
# shellcheck source=bin/utils
9-
source "$BIN_DIR/steps/sqlite3"
10-
11-
sqlite3_version
12-
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
13-
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
14-
15-
echo "Building Python…"
16-
SOURCE_TARBALL='https://python.org/ftp/python/3.7.3/Python-3.7.3.tgz'
17-
curl -L $SOURCE_TARBALL | tar xz
18-
mv Python-3.7.3 src
19-
cd src
20-
21-
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
22-
make
23-
make install
24-
25-
# Remove unneeded test directories, similar to the official Docker Python images:
26-
# https://github.com/docker-library/python
27-
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
28-
29-
# Remove spare /
30-
LOCATION=${OUT_PREFIX%?}
31-
32-
ln $LOCATION/bin/python3 $LOCATION/bin/python
4+
source $(dirname $0)/python3

0 commit comments

Comments
 (0)