Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
afa8a0f7
Commit
afa8a0f7
authored
May 14, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-compiled gdal step
parent
52b8ae82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
gdal
bin/steps/gdal
+37
-0
No files found.
bin/steps/gdal
0 → 100755
View file @
afa8a0f7
#!/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
[
-d
".heroku/vendor/lib/libffi-3.1.1"
]
;
then
export
LIBFFI
=
$(
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
LIBFFI
=
$(
pwd
)
/vendor
fi
fi
bpwatch stop gdal_install
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment