mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
24 lines
394 B
Bash
Executable File
24 lines
394 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Path: /app/.heroku/python/
|
|
|
|
OUT_PREFIX=$1
|
|
|
|
# Use new path, containing autoconf.
|
|
export PATH="/app/.heroku/python/bin/:$PATH"
|
|
hash -r
|
|
|
|
|
|
echo "Building libffi..."
|
|
|
|
SOURCE_TARBALL='https://cl.ly/2s1t1u3v0N0I/download/libffi-3.1.tar'
|
|
|
|
curl -L $SOURCE_TARBALL | tar x
|
|
|
|
cd libffi-3.1
|
|
./configure --prefix=$OUT_PREFIX --disable-static &&
|
|
make
|
|
make install
|
|
|
|
# Cleanup
|
|
cd ..
|