mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
20 lines
335 B
Bash
Executable File
20 lines
335 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# python-build <version> [--quiet]
|
|
|
|
curl -o python.tar.bz2 http://python.org/ftp/python/2.7.3/Python-2.7.3rc1.tar.bz2
|
|
mkdir python
|
|
tar -xjf python.tar.bz2 -C python
|
|
|
|
cd python
|
|
mv */* .
|
|
|
|
mkdir -p vendor/python
|
|
OLD_OATH=$PWD
|
|
cd vendor/python
|
|
PY_PATH=$PWD
|
|
cd $OLD_OATH
|
|
|
|
./configure --prefix $PY_PATH
|
|
make
|
|
make install
|