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
ffb89feb
Commit
ffb89feb
authored
Feb 09, 2016
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements to buildpack output
parent
45b00e32
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
collectstatic
bin/steps/collectstatic
+1
-1
pip-install
bin/steps/pip-install
+1
-1
utils
bin/utils
+10
-0
No files found.
bin/steps/collectstatic
View file @
ffb89feb
...
...
@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection
if
[
!
"
$DISABLE_COLLECTSTATIC
"
]
&&
[
-f
"
$MANAGE_FILE
"
]
&&
[
"
$DJANGO_INSTALLED
"
]
;
then
set
+e
echo
"----->
$
python
$MANAGE_FILE
collectstatic --noinput"
puts-cmd
"
python
$MANAGE_FILE
collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output.
python
$MANAGE_FILE
collectstatic
--noinput
--traceback
2>&1 |
sed
'/^Post-processed/d;/^Copying/d;/^$/d'
| indent
...
...
bin/steps/pip-install
View file @
ffb89feb
# Install dependencies with Pip.
puts-
step "Installing dependencies with pip
"
puts-
cmd "pip install -r requirements.txt
"
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
...
...
bin/utils
View file @
ffb89feb
...
...
@@ -26,6 +26,11 @@ 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'
}
# Buildpack Indented line.
puts-line() {
echo " $@"
}
# Buildpack Steps.
puts-step() {
echo "-----> $@"
...
...
@@ -36,6 +41,11 @@ puts-warn() {
echo " ! $@"
}
# Buildpack Commands.
puts-cmd() {
echo " $ $@"
}
# Usage: $ set-env key value
set-env() {
echo "export $1=$2" >> $PROFILE_PATH
...
...
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