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
a4f07271
Commit
a4f07271
authored
Mar 04, 2016
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendored geos and proj steps for GDAL
parent
427ec9e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gdal
bin/steps/gdal
+5
-1
No files found.
bin/steps/gdal
View file @
a4f07271
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
# The location of the pre-compiled cryptography binary.
# The location of the pre-compiled cryptography binary.
VENDORED_GDAL
=
"https://lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/gdal.tar.gz"
VENDORED_GDAL
=
"https://lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/gdal.tar.gz"
VENDORED_GEOS
=
"https://lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/geos.tar.gz"
VENDORED_PROJ
=
"https://lang-python.s3.amazonaws.com/
$STACK
/libraries/vendor/proj.tar.gz"
PKG_CONFIG_PATH
=
"/app/.heroku/vendor/lib/pkgconfig:
$PKG_CONFIG_PATH
"
PKG_CONFIG_PATH
=
"/app/.heroku/vendor/lib/pkgconfig:
$PKG_CONFIG_PATH
"
...
@@ -25,10 +27,12 @@ if (pip-grep -s requirements.txt GDAL &> /dev/null) then
...
@@ -25,10 +27,12 @@ if (pip-grep -s requirements.txt GDAL &> /dev/null) then
if
[
-f
".heroku/vendor/bin/gdalserver"
]
;
then
if
[
-f
".heroku/vendor/bin/gdalserver"
]
;
then
export
GDAL
=
$(
pwd
)
/vendor
export
GDAL
=
$(
pwd
)
/vendor
else
else
echo
"-----> Noticed GDAL. Bootstrapping gdal."
echo
"-----> Noticed GDAL. Bootstrapping gdal
, geos, proj
."
mkdir
-p
.heroku/vendor
mkdir
-p
.heroku/vendor
# Download and extract cryptography into target vendor directory.
# Download and extract cryptography into target vendor directory.
curl
$VENDORED_GDAL
-s
|
tar
zxv
-C
.heroku/vendor &> /dev/null
curl
$VENDORED_GDAL
-s
|
tar
zxv
-C
.heroku/vendor &> /dev/null
curl
$VENDORED_GEOS
-s
|
tar
zxv
-C
.heroku/vendor &> /dev/null
curl
$VENDORED_PROJ
-s
|
tar
zxv
-C
.heroku/vendor &> /dev/null
export
GDAL
=
$(
pwd
)
/vendor
export
GDAL
=
$(
pwd
)
/vendor
fi
fi
...
...
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