mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
29 lines
478 B
Bash
Executable File
29 lines
478 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Path: /app/.heroku/vendor/
|
|
|
|
OUT_PREFIX=$1
|
|
|
|
# Skip the build for heroku-16.
|
|
if [[ $S3_PREFIX == "heroku-16" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Use new path, containing autoconf.
|
|
export PATH="/app/.heroku/python/bin/:$PATH"
|
|
hash -r
|
|
|
|
|
|
echo "Building libffi…"
|
|
|
|
SOURCE_TARBALL='https://github.com/libffi/libffi/archive/v3.1.tar.gz'
|
|
|
|
curl -L $SOURCE_TARBALL | tar x
|
|
|
|
cd v3.1
|
|
./configure --prefix=$OUT_PREFIX --disable-static &&
|
|
make
|
|
make install
|
|
|
|
# Cleanup
|
|
cd ..
|