-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into merge-upstream-94…
…986024 [#94986024] Signed-off-by: Colin Jackson <[email protected]>
- Loading branch information
Showing
14 changed files
with
121 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script serves as the GDAL build step of the | ||
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python) | ||
# compiler. | ||
# | ||
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an | ||
# adapter between a Python application and Heroku's runtime. | ||
# | ||
# This script is invoked by [`bin/compile`](/). | ||
|
||
# The location of the pre-compiled cryptography binary. | ||
VENDORED_GDAL="https://lang-python.s3.amazonaws.com/$STACK/libraries/vendor/gdal.tar.gz" | ||
|
||
PKG_CONFIG_PATH="/app/.heroku/vendor/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
|
||
# Syntax sugar. | ||
source $BIN_DIR/utils | ||
|
||
bpwatch start gdal_install | ||
|
||
# If GDAL exists within requirements, use vendored gdal. | ||
if (pip-grep -s requirements.txt GDAL &> /dev/null) then | ||
|
||
if [ -f ".heroku/vendor/bin/gdalserver" ]; then | ||
export GDAL=$(pwd)/vendor | ||
else | ||
echo "-----> Noticed GDAL. Bootstrapping gdal." | ||
mkdir -p .heroku/vendor | ||
# Download and extract cryptography into target vendor directory. | ||
curl $VENDORED_GDAL -s | tar zxv -C .heroku/vendor &> /dev/null | ||
|
||
export GDAL=$(pwd)/vendor | ||
fi | ||
fi | ||
|
||
bpwatch stop gdal_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/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 gdal..." | ||
|
||
SOURCE_TARBALL='http://download.osgeo.org/gdal/1.11.0/gdal-1.11.0.tar.gz' | ||
|
||
curl -L $SOURCE_TARBALL | tar zx | ||
|
||
cd gdal-1.11.0 | ||
./configure --prefix=$OUT_PREFIX && | ||
make | ||
make install | ||
|
||
# Cleanup | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/python/ | ||
# Build Deps: libraries/sqlite | ||
|
||
# NOTICE: This formula only works for the cedar-14 stack, not cedar. | ||
|
||
OUT_PREFIX=$1 | ||
|
||
echo "Building PyPy..." | ||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-2.5.0-linux64.tar.bz2' | ||
curl -L $SOURCE_TARBALL | tar jx | ||
cp -R pypy-2.5.0-linux64/* $OUT_PREFIX | ||
|
||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/python/ | ||
# Build Deps: libraries/sqlite | ||
|
||
# NOTICE: This formula only works for the cedar-14 stack, not cedar. | ||
|
||
OUT_PREFIX=$1 | ||
|
||
echo "Building PyPy..." | ||
SOURCE_TARBALL='https://bitbucket.org/pypy/pypy/downloads/pypy-2.5.1-linux64.tar.bz2' | ||
curl -L $SOURCE_TARBALL | tar jx | ||
cp -R pypy-2.5.1-linux64/* $OUT_PREFIX | ||
|
||
ln $OUT_PREFIX/bin/pypy $OUT_PREFIX/bin/python |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.