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
45b0d185
Commit
45b0d185
authored
Mar 16, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests further
parent
8f258ae0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
30 deletions
+32
-30
compile
bin/compile
+6
-10
eggpath-fix
bin/steps/eggpath-fix
+11
-0
eggpath-fix2
bin/steps/eggpath-fix2
+9
-0
pip-install
bin/steps/pip-install
+0
-13
run
test/run
+6
-7
pip-9.0.1.tar.gz
vendor/pip-9.0.1.tar.gz
+0
-0
No files found.
bin/compile
View file @
45b0d185
...
...
@@ -158,7 +158,10 @@ source $BIN_DIR/steps/python
# Sanity check for setuptools/distribute.
source
$BIN_DIR
/steps/setuptools
# Mercurial support.
# Fix egg-links.
source
$BIN_DIR
/steps/eggpath-fix
# Pipenv support.
source
$BIN_DIR
/steps/pipenv
# If no requirements.txt file given, assume `setup.py develop` is intended.
...
...
@@ -215,15 +218,8 @@ bpwatch start post_compile
source
$BIN_DIR
/steps/hooks/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
"*.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
"*.pth"
-print0
2> /dev/null | xargs
-r
-0
-n
1
sed
-i
-e
"s#
$(
pwd
)
#/app#"
&> /dev/null
set
-e
# Fix egg-links, again.
source
$BIN_DIR
/steps/eggpath-fix2
# Store new artifacts in cache.
bpwatch start dump_cache
...
...
bin/steps/eggpath-fix
0 → 100644
View file @
45b0d185
set +e
# delete any existing egg links, to uninstall exisisting installations.
find .heroku/python/lib/python*/site-packages/ -name "*.egg-link" -delete 2> /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 the above, 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
\ No newline at end of file
bin/steps/eggpath-fix2
0 → 100644
View file @
45b0d185
set +e
# rewrite build dir in egg links to /app so things are found at runtime
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 "*.pth" -print0 2> /dev/null | xargs -r -0 -n 1 sed -i -e "s#$(pwd)#/app#" &> /dev/null
set -e
\ No newline at end of file
bin/steps/pip-install
View file @
45b0d185
# Install dependencies with Pip.
puts-step "Installing requirements with pip"
set +e
# delete any existing egg links, to uninstall exisisting installations.
find .heroku/python/lib/python*/site-packages/ -name "*.egg-link" -delete 2> /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 the above, 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_first
...
...
test/run
View file @
45b0d185
#!/usr/bin/env bash
testPipenvVersion
()
{
compile
"pipenv-version"
assertCaptured
"3.6.0"
assertCapturedSuccess
}
testPipenv
()
{
compile
"pipenv"
debug
assertCapturedSuccess
}
testPipenvVersion
()
{
compile
"pipenv-version"
assertCaptured
"3.6.0"
assertCapturedSuccess
}
testNoRequirements
()
{
compile
"no-requirements"
...
...
vendor/pip-9.0.1.tar.gz
deleted
100644 → 0
View file @
8f258ae0
File deleted
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