mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
26 lines
423 B
Bash
Executable File
26 lines
423 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Path: /app/.heroku/vendor/
|
|
|
|
OUT_PREFIX=$1
|
|
|
|
# Use new path, containing autoconf.
|
|
export PATH="/app/.heroku/python/bin/:$PATH"
|
|
hash -r
|
|
|
|
|
|
echo "Building geos…"
|
|
|
|
VERSION=3.6.2
|
|
|
|
SOURCE_TARBALL="http://download.osgeo.org/geos/geos-${VERSION}.tar.bz2"
|
|
|
|
curl -L $SOURCE_TARBALL | tar xj
|
|
|
|
pushd "geos-${VERSION}"
|
|
./configure --prefix=$OUT_PREFIX --enable-static=no &&
|
|
make
|
|
make install
|
|
|
|
# Cleanup
|
|
popd
|