File tree Expand file tree Collapse file tree 4 files changed +132
-0
lines changed Expand file tree Collapse file tree 4 files changed +132
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+
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
+ # LAST EXPECTED 3.4 RELEASE: March 2019
16
+ echo " Building Python…"
17
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.4.10/Python-3.4.10.tgz'
18
+ curl -L $SOURCE_TARBALL | tar xz
19
+ mv Python-3.4.9 src
20
+ cd src
21
+
22
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
23
+ make
24
+ make install
25
+
26
+ # Remove unneeded test directories, similar to the official Docker Python images:
27
+ # https://github.com/docker-library/python
28
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
29
+
30
+ # Remove spare /
31
+ LOCATION=${OUT_PREFIX% ?}
32
+
33
+ ln $LOCATION /bin/python3 $LOCATION /bin/python
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+
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
+ # EXPECTED RELEASE: March 2019
16
+ echo " Building Python…"
17
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.7.1/Python-3.7.1.tgz'
18
+ curl -L $SOURCE_TARBALL | tar xz
19
+ mv Python-3.7.1 src
20
+ cd src
21
+
22
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
23
+ make
24
+ make install
25
+
26
+ # Remove unneeded test directories, similar to the official Docker Python images:
27
+ # https://github.com/docker-library/python
28
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
29
+
30
+ # Remove spare /
31
+ LOCATION=${OUT_PREFIX% ?}
32
+
33
+ ln $LOCATION /bin/python3 $LOCATION /bin/python
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+
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
+ # EXPECTED RELEASE: 12/16/2018
16
+ echo " Building Python…"
17
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.6.8/Python-3.6.8.tgz'
18
+ curl -L $SOURCE_TARBALL | tar xz
19
+ mv Python-3.6.8 src
20
+ cd src
21
+
22
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
23
+ make
24
+ make install
25
+
26
+ # Remove unneeded test directories, similar to the official Docker Python images:
27
+ # https://github.com/docker-library/python
28
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
29
+
30
+ # Remove spare /
31
+ LOCATION=${OUT_PREFIX% ?}
32
+
33
+ ln $LOCATION /bin/python3 $LOCATION /bin/python
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+
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
+ # EXPECTED RELEASE: 2018-12-16
16
+ echo " Building Python…"
17
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
18
+ curl -L $SOURCE_TARBALL | tar xz
19
+ mv Python-3.7.2 src
20
+ cd src
21
+
22
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
23
+ make
24
+ make install
25
+
26
+ # Remove unneeded test directories, similar to the official Docker Python images:
27
+ # https://github.com/docker-library/python
28
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
29
+
30
+ # Remove spare /
31
+ LOCATION=${OUT_PREFIX% ?}
32
+
33
+ ln $LOCATION /bin/python3 $LOCATION /bin/python
You can’t perform that action at this time.
0 commit comments