File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-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
+ # 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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments