mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
c82415733d
local PYTHON_VERSION=${1:-2.7.8}
Thanks for the tip. You learn something new every day.
15 lines
431 B
Bash
15 lines
431 B
Bash
#!/usr/bin/env bash
|
|
# Build Path: /app/.heroku/python/
|
|
# Build Deps: libraries/sqlite
|
|
|
|
# download_python(PYTHON_VERSION)
|
|
# Example usage: download_python "2.7.8"
|
|
download_python()
|
|
{
|
|
local PYTHON_VERSION=${1:-2.7.8}
|
|
echo "Building Python $PYTHON_VERSION..."
|
|
SOURCE_TARBALL="http://python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz"
|
|
curl -L $SOURCE_TARBALL | tar xz
|
|
mv Python-$PYTHON_VERSION src
|
|
}
|