mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
52 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a6f7f849b | |||
| 475af5a1f8 | |||
| d166ee88d7 | |||
| ba55465a2b | |||
| 93a620e6ed | |||
| a7a257e099 | |||
| 40e91a9755 | |||
| 7686370d81 | |||
| 2d6990425e | |||
| b5b640ab00 | |||
| dfe28cbe28 | |||
| 8fc94c0868 | |||
| 86fc9f156b | |||
| 2a4f0a66c3 | |||
| 87ba8b499a | |||
| f03b7ed048 | |||
| bf1b1dc3f8 | |||
| a421ea93e3 | |||
| 3c40bf8bea | |||
| f28465bec7 | |||
| fade163df8 | |||
| 13fad186ff | |||
| c12f395c9a | |||
| 43c54abf0e | |||
| 151df58e86 | |||
| 1c87fd3d6e | |||
| 50cdf10a36 | |||
| 0be5993e32 | |||
| 3f9a80ad24 | |||
| 14c15f4dd8 | |||
| 9bd5fa7c7f | |||
| 89885a4472 | |||
| 3c193bd475 | |||
| a7f62496b1 | |||
| f1b0f8c154 | |||
| f90dfbc12e | |||
| 9ca0c4eb84 | |||
| dc694d4712 | |||
| b4b94abea0 | |||
| 0c66cea063 | |||
| 48f6e20fc5 | |||
| e821501114 | |||
| 03c12e8081 | |||
| de18566b47 | |||
| 939594ecf4 | |||
| d54da94d47 | |||
| ce6657d5fe | |||
| 74bc1d4049 | |||
| c4b4bfaa3c | |||
| 7c82017a0e | |||
| 6a8aa1e2b0 | |||
| 35873ee517 |
+6
-3
@@ -10,11 +10,11 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- docker build --pull --tag travis-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
|
- docker build --pull --tag travis-build-cedar-14 --file $(pwd)/builds/cedar-14.Dockerfile .
|
||||||
- docker run --rm -e "STACK=cedar-14" travis-build-cedar-14 bash $TESTFOLDER
|
- docker run --rm -e "STACK=cedar-14" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-cedar-14 bash $TESTFOLDER
|
||||||
- docker build --pull --tag travis-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
|
- docker build --pull --tag travis-build-heroku-16 --file $(pwd)/builds/heroku-16.Dockerfile .
|
||||||
- docker run --rm -e "STACK=heroku-16" travis-build-heroku-16 bash $TESTFOLDER
|
- docker run --rm -e "STACK=heroku-16" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-16 bash $TESTFOLDER
|
||||||
- docker build --pull --tag travis-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
|
- docker build --pull --tag travis-build-heroku-18 --file $(pwd)/builds/heroku-18.Dockerfile .
|
||||||
- docker run --rm -e "STACK=heroku-18" travis-build-heroku-18 bash $TESTFOLDER
|
- docker run --rm -e "STACK=heroku-18" -e "USE_STAGING_BINARIES=$USE_STAGING_BINARIES" travis-build-heroku-18 bash $TESTFOLDER
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
@@ -28,8 +28,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- TESTFOLDER=test/run-deps
|
- TESTFOLDER=test/run-deps
|
||||||
|
- TESTFOLDER=test/run-deps USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
|
||||||
- TESTFOLDER=test/run-versions
|
- TESTFOLDER=test/run-versions
|
||||||
|
- TESTFOLDER=test/run-versions USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
|
||||||
- TESTFOLDER=test/run-features
|
- TESTFOLDER=test/run-features
|
||||||
|
- TESTFOLDER=test/run-features USE_STAGING_BINARIES=https://lang-python.s3.amazonaws.com/staging
|
||||||
global:
|
global:
|
||||||
- HATCHET_RETRIES=3
|
- HATCHET_RETRIES=3
|
||||||
- IS_RUNNING_ON_CI=true
|
- IS_RUNNING_ON_CI=true
|
||||||
|
|||||||
+9
-1
@@ -2,10 +2,18 @@
|
|||||||
|
|
||||||
# Master
|
# Master
|
||||||
|
|
||||||
- Bugfix: Pipenv no longer installs twice in CI
|
- Sqlite fix:
|
||||||
|
- Update Python3 and Python2 base formula
|
||||||
|
- Update Python formulas 3.6.x, 3.7.x, 3.5.x, and 2.7.17-2.7.9
|
||||||
|
- Test staged binaries on Travis
|
||||||
|
- Bug fix: Sqlite3 version bump
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# 160 (2019-10-23)
|
||||||
|
|
||||||
|
- Bugfix: Pipenv no longer installs twice in CI
|
||||||
|
|
||||||
# 159 (2019-10-22)
|
# 159 (2019-10-22)
|
||||||
|
|
||||||
- Python 2.7.17 now available on Heroku 18 and 16.
|
- Python 2.7.17 now available on Heroku 18 and 16.
|
||||||
|
|||||||
+10
-3
@@ -7,9 +7,9 @@ sqlite3_version() {
|
|||||||
if [ "$STACK" = "cedar-14" ]; then
|
if [ "$STACK" = "cedar-14" ]; then
|
||||||
SQLITE3_VERSION="3.8.2-1ubuntu2.2"
|
SQLITE3_VERSION="3.8.2-1ubuntu2.2"
|
||||||
elif [ "$STACK" = "heroku-16" ]; then
|
elif [ "$STACK" = "heroku-16" ]; then
|
||||||
SQLITE3_VERSION="3.11.0-1ubuntu1.2"
|
SQLITE3_VERSION="3.11.0-1ubuntu1.3"
|
||||||
else
|
else
|
||||||
SQLITE3_VERSION=${SQLITE3_VERSION:-$(dpkg -s libsqlite3-0 | grep Version | sed 's/Version: //')}
|
SQLITE3_VERSION="3.22.0-1ubuntu0.2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export SQLITE3_VERSION
|
export SQLITE3_VERSION
|
||||||
@@ -83,7 +83,14 @@ buildpack_sqlite3_install() {
|
|||||||
# only install if the sqlite3 version has changed
|
# only install if the sqlite3 version has changed
|
||||||
if [ "$INSTALLED_SQLITE3_VERSION" != "$SQLITE3_VERSION" ]; then
|
if [ "$INSTALLED_SQLITE3_VERSION" != "$SQLITE3_VERSION" ]; then
|
||||||
puts-step "Installing SQLite3"
|
puts-step "Installing SQLite3"
|
||||||
sqlite3_install "$BUILD_DIR/.heroku/python" "$SQLITE3_VERSION"
|
|
||||||
|
if sqlite3_install "$BUILD_DIR/.heroku/python" "$SQLITE3_VERSION" ; then
|
||||||
|
echo "Sqlite3 successfully installed."
|
||||||
|
mcount "success.python.sqlite3"
|
||||||
|
else
|
||||||
|
echo "Sqlite3 failed to install."
|
||||||
|
mcount "failure.python.sqlite3"
|
||||||
|
fi
|
||||||
|
|
||||||
# save version installed
|
# save version installed
|
||||||
mkdir -p "$CACHE_DIR/.heroku/"
|
mkdir -p "$CACHE_DIR/.heroku/"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ ENV WORKSPACE_DIR="/app/builds" \
|
|||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
STACK="cedar-14"
|
STACK="cedar-14"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y python-pip libsqlite3-dev realpath && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install -r /app/requirements.txt
|
RUN pip install -r /app/requirements.txt
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ ENV WORKSPACE_DIR="/app/builds" \
|
|||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
STACK="heroku-16"
|
STACK="heroku-16"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python-pip && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y python-pip libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ ENV WORKSPACE_DIR="/app/builds" \
|
|||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
STACK="heroku-18"
|
STACK="heroku-18"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y python-pip-whl=9.0.1-2 python-pip=9.0.1-2 python-setuptools python-wheel && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install --no-install-recommends -y python-pip-whl=9.0.1-2 python-pip=9.0.1-2 python-setuptools python-wheel libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
RUN pip install --disable-pip-version-check --no-cache-dir -r /app/requirements.txt
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.10/Python-2.7.10.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.10 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.11/Python-2.7.11.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.11 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.12/Python-2.7.12.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.12 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
@@ -1,19 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.13/Python-2.7.13.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.13 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,19 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.14/Python-2.7.14.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.14 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,27 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.15/Python-2.7.15.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.15 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,27 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.16/Python-2.7.16.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.16 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|||||||
@@ -1,15 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python2
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/2.7.9/Python-2.7.9.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-2.7.9 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.2/Python-3.5.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.3/Python-3.5.3.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.3 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.6/Python-3.5.6.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.6 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.5.7/Python-3.5.7.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.5.7 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.0/Python-3.6.0.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.0 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,18 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.1/Python-3.6.1.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.1 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|
||||||
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.2/Python-3.6.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.3/Python-3.6.3.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.3 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.4/Python-3.6.4.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.4 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,21 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.5/Python-3.6.5.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.5 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,29 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.6/Python-3.6.6.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.6 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.7/Python-3.6.7.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.7 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.6.8/Python-3.6.8.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.6.8 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
source $(dirname $0)/python3
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -1,29 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.0/Python-3.7.0.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.0 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
ln $OUT_PREFIX/bin/python3 $OUT_PREFIX/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.1/Python-3.7.1.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.1 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.2/Python-3.7.2.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.2 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,32 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
|
|
||||||
OUT_PREFIX=$1
|
source $(dirname $0)/python3
|
||||||
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
|
|
||||||
export BIN_DIR
|
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python…"
|
|
||||||
SOURCE_TARBALL='https://python.org/ftp/python/3.7.3/Python-3.7.3.tgz'
|
|
||||||
curl -L $SOURCE_TARBALL | tar xz
|
|
||||||
mv Python-3.7.3 src
|
|
||||||
cd src
|
|
||||||
|
|
||||||
./configure --prefix=$OUT_PREFIX --with-ensurepip=no
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
|
||||||
# https://github.com/docker-library/python
|
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
|
||||||
|
|
||||||
# Remove spare /
|
|
||||||
LOCATION=${OUT_PREFIX%?}
|
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Build Path: /app/.heroku/python/
|
# Build Path: /app/.heroku/python/
|
||||||
# Build Deps: libraries/sqlite
|
|
||||||
|
|
||||||
source $(dirname $0)/python3
|
source $(dirname $0)/python3
|
||||||
|
|||||||
@@ -12,14 +12,7 @@ python_version=${BASE^} # this gives us only the filename with version number
|
|||||||
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
||||||
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
echo "Building ${python_version}..."
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python 3..."
|
|
||||||
echo "Pulling from source: ${dep_url}"
|
echo "Pulling from source: ${dep_url}"
|
||||||
|
|
||||||
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
||||||
@@ -33,3 +26,8 @@ make install
|
|||||||
# Remove unneeded test directories, similar to the official Docker Python images:
|
# Remove unneeded test directories, similar to the official Docker Python images:
|
||||||
# https://github.com/docker-library/python
|
# https://github.com/docker-library/python
|
||||||
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +
|
||||||
|
|
||||||
|
# Create links to SQLITE headers so Python can call them at runtime
|
||||||
|
mkdir -p ${OUT_PREFIX}/include ${OUT_PREFIX}/lib/x86_64-linux-gnu
|
||||||
|
cp /usr/include/sqlite3*.h ${OUT_PREFIX}/include
|
||||||
|
ln -fs $(realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX}/lib/x86_64-linux-gnu/libsqlite3.so
|
||||||
|
|||||||
+5
-11
@@ -16,17 +16,6 @@ python_version=${BASE^} # this gives us only the filename with version number
|
|||||||
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
version_number=$(echo "$python_version" | cut -d- -f2) # this returns just X.X.X
|
||||||
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
dep_url=https://python.org/ftp/python/${version_number}/${python_version}.tgz
|
||||||
|
|
||||||
# shellcheck source=bin/utils
|
|
||||||
source "$BIN_DIR/steps/sqlite3"
|
|
||||||
|
|
||||||
sqlite3_version
|
|
||||||
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
|
|
||||||
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
|
|
||||||
|
|
||||||
echo "Building Python 3..."
|
|
||||||
echo "Pulling from source: ${dep_url}"
|
|
||||||
|
|
||||||
|
|
||||||
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
curl -L "${dep_url}" | tar xz -C "${OUT_PREFIX}"
|
||||||
mv "${OUT_PREFIX}/${python_version}" src
|
mv "${OUT_PREFIX}/${python_version}" src
|
||||||
cd src
|
cd src
|
||||||
@@ -42,4 +31,9 @@ find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -
|
|||||||
# Remove spare /
|
# Remove spare /
|
||||||
LOCATION=${OUT_PREFIX%?}
|
LOCATION=${OUT_PREFIX%?}
|
||||||
|
|
||||||
|
# Create links to SQLITE headers so Python can call them at runtime
|
||||||
|
mkdir -p ${OUT_PREFIX}/include ${OUT_PREFIX}/lib/x86_64-linux-gnu
|
||||||
|
cp /usr/include/sqlite3*.h ${OUT_PREFIX}/include
|
||||||
|
ln -fs $(realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX}/lib/x86_64-linux-gnu/libsqlite3.so
|
||||||
|
|
||||||
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
ln $LOCATION/bin/python3 $LOCATION/bin/python
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.4.9
|
python-3.4.10
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.6
|
python-3.5.7
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
python-3.5.3
|
python-3.5.6
|
||||||
|
|||||||
@@ -46,6 +46,13 @@ testPysqlite() {
|
|||||||
assertCapturedSuccess
|
assertCapturedSuccess
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testSqliteInstall() {
|
||||||
|
compile "pythonDefault"
|
||||||
|
assertCaptured "Sqlite3 successfully installed."
|
||||||
|
assertNotCaptured "Sqlite3 failed to install."
|
||||||
|
assertCapturedSuccess
|
||||||
|
}
|
||||||
|
|
||||||
testCffi() {
|
testCffi() {
|
||||||
compile "cffi"
|
compile "cffi"
|
||||||
assertCaptured "cffi"
|
assertCaptured "cffi"
|
||||||
|
|||||||
+26
-21
@@ -38,11 +38,17 @@ testPython2_fail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testPython3_4() {
|
testPython3_4() {
|
||||||
if [[ $STACK != "cedar-14" ]]; then
|
compile "python3_4"
|
||||||
updateVersion "python3_4" $LATEST_34
|
assertCaptured $LATEST_34
|
||||||
compile "python3_4"
|
assertNotCaptured "security update"
|
||||||
assertCaptured $LATEST_34
|
# if cedar 14 and legacy binaries, fail. if cedar 14 and staging, succeed.
|
||||||
assertNotCaptured "security update"
|
if [[ ! -n $USE_STAGING_BINARIES ]] && [[ $STACK == "cedar-14" ]]; then
|
||||||
|
assertCapturedError
|
||||||
|
# if heroku 18 and legacy binaries, succeed. if heroku 18 and staging, fail.
|
||||||
|
elif [[ -n $USE_STAGING_BINARIES ]] && [[ $STACK == "heroku-18" ]]; then
|
||||||
|
assertCapturedError
|
||||||
|
else
|
||||||
|
# all else succeed
|
||||||
assertCapturedSuccess
|
assertCapturedSuccess
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -51,7 +57,13 @@ testPython3_4_warn() {
|
|||||||
compile "python3_4_warn"
|
compile "python3_4_warn"
|
||||||
assertCaptured "python-3.4.9"
|
assertCaptured "python-3.4.9"
|
||||||
assertCaptured "security update!"
|
assertCaptured "security update!"
|
||||||
assertCapturedSuccess
|
# if heroku 18 and legacy binaries, succeed. if heroku 18 and staging, fail.
|
||||||
|
if [[ -n $USE_STAGING_BINARIES ]] && [[ $STACK == "heroku-18" ]]; then
|
||||||
|
assertCapturedError
|
||||||
|
else
|
||||||
|
# all else succeed
|
||||||
|
assertCapturedSuccess
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
testPython3_4_fail() {
|
testPython3_4_fail() {
|
||||||
@@ -61,25 +73,18 @@ testPython3_4_fail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testPython3_5() {
|
testPython3_5() {
|
||||||
if [[ $STACK != "cedar-14" ]]; then
|
compile "python3_5"
|
||||||
updateVersion "python3_5" $LATEST_35
|
assertCaptured $LATEST_35
|
||||||
compile "python3_5"
|
assertNotCaptured "security update"
|
||||||
assertCaptured $LATEST_35
|
assertCaptured "Installing SQLite3"
|
||||||
assertNotCaptured "security update"
|
assertCapturedSuccess
|
||||||
assertCaptured "Installing SQLite3"
|
|
||||||
assertCapturedSuccess
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testPython3_5_warn() {
|
testPython3_5_warn() {
|
||||||
compile "python3_5_warn"
|
compile "python3_5_warn"
|
||||||
if [[ $STACK = "cedar-14" ]]; then
|
assertCaptured "python-3.5.6"
|
||||||
assertCaptured "python-3.5.3"
|
assertCaptured "security update!"
|
||||||
assertCaptured "security update!"
|
assertCapturedSuccess
|
||||||
assertCapturedError
|
|
||||||
else
|
|
||||||
assertCapturedError
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testPython3_5_fail() {
|
testPython3_5_fail() {
|
||||||
|
|||||||
Reference in New Issue
Block a user