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
ddc31008
Commit
ddc31008
authored
Nov 10, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add loging to pip-install
parent
bc754f40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
compile
bin/compile
+3
-0
pip-install
bin/steps/pip-install
+1
-1
utils
bin/utils
+10
-0
No files found.
bin/compile
View file @
ddc31008
...
...
@@ -29,6 +29,9 @@ PYTHON_EXE="/app/.heroku/python/bin/python"
PIP_VERSION
=
"7.1.2"
SETUPTOOLS_VERSION
=
"18.3.2"
# Common Problem Warnings
export
WARNINGS_LOG
=
$(
mktemp
)
# Setup bpwatch
export
PATH
=
$PATH
:
$ROOT_DIR
/vendor/bpwatch
LOGPLEX_KEY
=
"t.b90d9d29-5388-4908-9737-b4576af1d4ce"
...
...
bin/steps/pip-install
View file @
ddc31008
...
...
@@ -4,7 +4,7 @@ puts-step "Installing dependencies with pip"
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --allow-all-external --disable-pip-version-check --no-cache-dir | cleanup | indent
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --allow-all-external --disable-pip-version-check --no-cache-dir | cleanup |
log-output |
indent
# Smart Requirements handling
cp requirements.txt .heroku/python/requirements-declared.txt
...
...
bin/utils
View file @
ddc31008
...
...
@@ -11,6 +11,16 @@ indent() {
sed "s/^/ /"
}
# Log output for warning detection
log-output() (
while read LINE;
do
echo "$LINE"
echo "$LINE" >> "$WARNINGS_LOG"
done
)
# Clean up pip output
cleanup() {
sed -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -e '/Overwriting/Id' | sed -e '/python executable/Id' | sed -e '/no previously-included files/Id'
...
...
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