Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
206a2dbc
There was an error fetching the commit references. Please try again later.
Commit
206a2dbc
authored
11 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
third argument support for envs in compile
parent
2a083791
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/compile
+5
-4
5 additions, 4 deletions
bin/compile
bin/steps/hooks/post_compile
+1
-1
1 addition, 1 deletion
bin/steps/hooks/post_compile
bin/steps/hooks/pre_compile
+1
-1
1 addition, 1 deletion
bin/steps/hooks/pre_compile
bin/utils
+3
-1
3 additions, 1 deletion
bin/utils
with
10 additions
and
7 deletions
bin/compile
+
5
−
4
View file @
206a2dbc
...
...
@@ -2,8 +2,7 @@
# Usage:
#
# $ bin/compile <build-dir> <cache-dir>
# $ bin/compile <build-dir> <cache-dir> <env-path>
# Fail fast and fail hard.
set
-eo
pipefail
...
...
@@ -16,6 +15,8 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
ROOT_DIR
=
$(
dirname
$BIN_DIR
)
BUILD_DIR
=
$1
CACHE_DIR
=
$2
ENV_FILE
=
$3
CACHED_DIRS
=
".heroku"
...
...
@@ -222,7 +223,7 @@ puts-step "Installing dependencies using Pip ($PIP_VERSION)"
# Django collectstatic support.
bpwatch start collectstatic
s
ource
$BIN_DIR
/steps/collectstatic
s
ub-env
$BIN_DIR
/steps/collectstatic
bpwatch stop collectstatic
# ### Finalize
...
...
@@ -261,6 +262,6 @@ bpwatch start anvil_appdir_commit
if
[
"
$SLUG_ID
"
]
;
then
deep-mv
$TMP_APP_DIR
$APP_DIR
fi
bpwatch stop anvil_appdir_commit
bpwatch stop anvil_appdir_commit
bpwatch stop compile
This diff is collapsed.
Click to expand it.
bin/steps/hooks/post_compile
+
1
−
1
View file @
206a2dbc
...
...
@@ -3,5 +3,5 @@
if
[
-f
bin/post_compile
]
;
then
echo
"-----> Running post-compile hook"
chmod
+x bin/post_compile
bin/post_compile
sub-env
bin/post_compile
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/steps/hooks/pre_compile
+
1
−
1
View file @
206a2dbc
...
...
@@ -3,5 +3,5 @@
if
[
-f
bin/pre_compile
]
;
then
echo
"-----> Running pre-compile hook"
chmod
+x bin/pre_compile
bin/pre_compile
sub-env
bin/pre_compile
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/utils
+
3
−
1
View file @
206a2dbc
...
...
@@ -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 '{}' \;
}
function sub-env (){
(export $(egrep -v '^(GIT_DIR|PYTHONHOME|PYTHONPATH|LD_LIBRARY_PATH|LIBRARY_PATH|PATH)' $ENV_FILE); $1)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment