mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
31 lines
519 B
Bash
Executable File
31 lines
519 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Path: /app/.heroku/python/
|
|
|
|
OUT_PREFIX=$1
|
|
|
|
echo "Building autoconf..."
|
|
|
|
|
|
curl http://files.directadmin.com/services/custombuild/autoconf-2.61.tar.gz | tar xz
|
|
cd autoconf-2.61
|
|
./configure --prefix=$OUT_PREFIX
|
|
make
|
|
make install
|
|
|
|
echo "Building libffi..."
|
|
|
|
SOURCE_TARBALL='https://github.com/atgreen/libffi/archive/master.tar.gz'
|
|
|
|
curl -L $SOURCE_TARBALL | tar xz
|
|
mv libffi-master libffi
|
|
|
|
cd libffi
|
|
./autogen.sh
|
|
./configure --prefix=$OUT_PREFIX
|
|
make
|
|
make install
|
|
|
|
# Cleanup
|
|
cd ..
|
|
rm -fr libffi
|