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
94514a81
Commit
94514a81
authored
Dec 19, 2016
by
David Zuelke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix egg links containing refs to /tmp
parent
7cfbce82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
compile
bin/compile
+9
-1
No files found.
bin/compile
View file @
94514a81
...
@@ -157,6 +157,7 @@ if [[ $BUILD_DIR != '/app' ]]; then
...
@@ -157,6 +157,7 @@ if [[ $BUILD_DIR != '/app' ]]; then
# python expects to reside in /app, so set up symlinks
# python expects to reside in /app, so set up symlinks
# we will not remove these later so subsequent buildpacks can still invoke it
# we will not remove these later so subsequent buildpacks can still invoke it
ln
-s
$BUILD_DIR
/.heroku/python /app/.heroku/python
ln
-s
$BUILD_DIR
/.heroku/python /app/.heroku/python
ln
-s
$BUILD_DIR
/.heroku/src /app/.heroku/src
ln
-s
$BUILD_DIR
/.heroku/vendor /app/.heroku/vendor
ln
-s
$BUILD_DIR
/.heroku/vendor /app/.heroku/vendor
ln
-s
$BUILD_DIR
/.heroku/venv /app/.heroku/venv
ln
-s
$BUILD_DIR
/.heroku/venv /app/.heroku/venv
fi
fi
...
@@ -185,13 +186,20 @@ sub-env $BIN_DIR/steps/geo-libs
...
@@ -185,13 +186,20 @@ sub-env $BIN_DIR/steps/geo-libs
# GDAL support.
# GDAL support.
source
$BIN_DIR
/steps/gdal
source
$BIN_DIR
/steps/gdal
# rewrite any existing egg links to point to the build dir so pip does not fail with a mismatch error
find .heroku/python/lib/python
*
/site-packages/
-name
"*.egg-link"
-print0
| xargs
-r
-0
-n
1
sed
-i
-e
"s#/app/#
$(
pwd
)
/#"
find .heroku/python/lib/python
*
/site-packages/
-name
"*.pth"
-print0
| xargs
-r
-0
-n
1
sed
-i
-e
"s#/app/#/
$(
pwd
)
/#"
# Install dependencies with Pip.
# Install dependencies with Pip.
source
$BIN_DIR
/steps/pip-install
source
$BIN_DIR
/steps/pip-install
# rewrite build dir in egg links to /app so things are found at runtime
find .heroku/python/lib/python
*
/site-packages/
-name
"*.egg-link"
-print0
| xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
find .heroku/python/lib/python
*
/site-packages/
-name
"*.pth"
-print0
| xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
# Django collectstatic support.
# Django collectstatic support.
sub-env
$BIN_DIR
/steps/collectstatic
sub-env
$BIN_DIR
/steps/collectstatic
# Create .profile script for application runtime environment variables.
# Create .profile script for application runtime environment variables.
set-env PATH
'$HOME/.heroku/python/bin:$PATH'
set-env PATH
'$HOME/.heroku/python/bin:$PATH'
set-env PYTHONUNBUFFERED
true
set-env PYTHONUNBUFFERED
true
...
...
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