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
a0649b1e
Commit
a0649b1e
authored
Dec 20, 2016
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move things around for collectstatic
parent
2f2fd244
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
compile
bin/compile
+13
-0
pip-install
bin/steps/pip-install
+0
-24
No files found.
bin/compile
View file @
a0649b1e
...
@@ -218,6 +218,19 @@ bpwatch start post_compile
...
@@ -218,6 +218,19 @@ bpwatch start post_compile
source
$BIN_DIR
/steps/hooks/post_compile
source
$BIN_DIR
/steps/hooks/post_compile
bpwatch stop post_compile
bpwatch stop post_compile
set
+e
# 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
2> /dev/null | xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
&> /dev/null
find .heroku/python/lib/python
*
/site-packages/
-name
"*.pth"
-print0
2> /dev/null | xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
&> /dev/null
set
-e
set
+e
# Support for PyPy
find .heroku/python/lib-python/
*
/site-packages/
-name
"*.egg-link"
-print0
2> /dev/null | xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
&> /dev/null
find .heroku/python/lib-python/
*
/site-packages/
-name
"*.pth"
-print0
2> /dev/null | xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
/#/app/#"
&> /dev/null
set
-e
# Store new artifacts in cache.
# Store new artifacts in cache.
bpwatch start dump_cache
bpwatch start dump_cache
...
...
bin/steps/pip-install
View file @
a0649b1e
# Install dependencies with Pip.
# Install dependencies with Pip.
puts-cmd "pip install -r requirements.txt"
puts-cmd "pip install -r requirements.txt"
set +e
# 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 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#/app/#$(pwd)/#" &> /dev/null
find .heroku/python/lib/python*/site-packages/ -name "*.pth" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#/app/#/$(pwd)/#" &> /dev/null
set -e
set +e
# Support for PyPy
find .heroku/python/lib-python/*/site-packages/ -name "*.egg-link" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#/app/#$(pwd)/#" &> /dev/null
find .heroku/python/lib-python/*/site-packages/ -name "*.pth" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#/app/#/$(pwd)/#" &> /dev/null
set -e
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
...
@@ -35,16 +23,4 @@ cp requirements.txt .heroku/python/requirements-declared.txt
...
@@ -35,16 +23,4 @@ cp requirements.txt .heroku/python/requirements-declared.txt
[ ! "$FRESH_PYTHON" ] && bpwatch stop pip_install
[ ! "$FRESH_PYTHON" ] && bpwatch stop pip_install
[ "$FRESH_PYTHON" ] && bpwatch stop pip_install_first
[ "$FRESH_PYTHON" ] && bpwatch stop pip_install_first
set +e
# 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 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#$(pwd)/#/app/#" &> /dev/null
find .heroku/python/lib/python*/site-packages/ -name "*.pth" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#$(pwd)/#/app/#" &> /dev/null
set -e
set +e
# Support for PyPy
find .heroku/python/lib-python/*/site-packages/ -name "*.egg-link" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#$(pwd)/#/app/#" &> /dev/null
find .heroku/python/lib-python/*/site-packages/ -name "*.pth" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#$(pwd)/#/app/#" &> /dev/null
set -e
echo
echo
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