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
206a2dbc
Commit
206a2dbc
authored
Dec 13, 2013
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
third argument support for envs in compile
parent
2a083791
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
compile
bin/compile
+5
-4
post_compile
bin/steps/hooks/post_compile
+1
-1
pre_compile
bin/steps/hooks/pre_compile
+1
-1
utils
bin/utils
+3
-1
No files found.
bin/compile
View file @
206a2dbc
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
# Usage:
# Usage:
#
#
# $ bin/compile <build-dir> <cache-dir>
# $ bin/compile <build-dir> <cache-dir> <env-path>
# Fail fast and fail hard.
# Fail fast and fail hard.
set
-eo
pipefail
set
-eo
pipefail
...
@@ -16,6 +15,8 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
...
@@ -16,6 +15,8 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
ROOT_DIR
=
$(
dirname
$BIN_DIR
)
ROOT_DIR
=
$(
dirname
$BIN_DIR
)
BUILD_DIR
=
$1
BUILD_DIR
=
$1
CACHE_DIR
=
$2
CACHE_DIR
=
$2
ENV_FILE
=
$3
CACHED_DIRS
=
".heroku"
CACHED_DIRS
=
".heroku"
...
@@ -222,7 +223,7 @@ puts-step "Installing dependencies using Pip ($PIP_VERSION)"
...
@@ -222,7 +223,7 @@ puts-step "Installing dependencies using Pip ($PIP_VERSION)"
# Django collectstatic support.
# Django collectstatic support.
bpwatch start collectstatic
bpwatch start collectstatic
s
ource
$BIN_DIR
/steps/collectstatic
s
ub-env
$BIN_DIR
/steps/collectstatic
bpwatch stop collectstatic
bpwatch stop collectstatic
# ### Finalize
# ### Finalize
...
@@ -261,6 +262,6 @@ bpwatch start anvil_appdir_commit
...
@@ -261,6 +262,6 @@ bpwatch start anvil_appdir_commit
if
[
"
$SLUG_ID
"
]
;
then
if
[
"
$SLUG_ID
"
]
;
then
deep-mv
$TMP_APP_DIR
$APP_DIR
deep-mv
$TMP_APP_DIR
$APP_DIR
fi
fi
bpwatch stop anvil_appdir_commit
bpwatch stop anvil_appdir_commit
bpwatch stop compile
bpwatch stop compile
bin/steps/hooks/post_compile
View file @
206a2dbc
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
if
[
-f
bin/post_compile
]
;
then
if
[
-f
bin/post_compile
]
;
then
echo
"-----> Running post-compile hook"
echo
"-----> Running post-compile hook"
chmod
+x bin/post_compile
chmod
+x bin/post_compile
bin/post_compile
sub-env
bin/post_compile
fi
fi
\ No newline at end of file
bin/steps/hooks/pre_compile
View file @
206a2dbc
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
if
[
-f
bin/pre_compile
]
;
then
if
[
-f
bin/pre_compile
]
;
then
echo
"-----> Running pre-compile hook"
echo
"-----> Running pre-compile hook"
chmod
+x bin/pre_compile
chmod
+x bin/pre_compile
bin/pre_compile
sub-env
bin/pre_compile
fi
fi
\ No newline at end of file
bin/utils
View file @
206a2dbc
...
@@ -59,4 +59,6 @@ function deep-rm (){
...
@@ -59,4 +59,6 @@ function deep-rm (){
find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
find -H $1 -maxdepth 1 -name '.*' -a \( -type d -o -type f -o -type l \) -exec rm -fr '{}' \;
}
}
function sub-env (){
(export $(egrep -v '^(GIT_DIR|PYTHONHOME|PYTHONPATH|LD_LIBRARY_PATH|LIBRARY_PATH|PATH)' $ENV_FILE); $1)
}
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