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
0f56e41e
Commit
0f56e41e
authored
May 18, 2011
by
Noah Zoschke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile hook poc; source PIP_OPTS from Makefile if present
parent
3e55317f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
compile
bin/compile
+5
-1
No files found.
bin/compile
View file @
0f56e41e
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
set
-x
set
-e
set
-o
pipefail
...
...
@@ -19,6 +20,9 @@ function sed() {
cd
$BUILD_DIR
# COMPILE HOOK: export build environment if specified
(
make environment 2> /dev/null
)
&&
eval
$(
make environment
)
# copy artifacts out of cache if exists
mkdir
-p
$CACHE_DIR
for
dir
in
$VIRTUALENV_DIRS
;
do
...
...
@@ -45,7 +49,7 @@ if [ "$NAME" = "Python/Django" ]; then
fi
echo
"-----> Installing dependencies using pip version
$(
pip
--version
|
awk
'{print $2}'
)
"
PIP_DOWNLOAD_CACHE
=
$PIP_DOWNLOAD_CACHE
bin/pip
install
-r
requirements.txt |
sed
-u
's/^/ /'
PIP_DOWNLOAD_CACHE
=
$PIP_DOWNLOAD_CACHE
bin/pip
install
-r
requirements.txt
${
PIP_OPTS
}
|
sed
-u
's/^/ /'
# store new artifacts in cache
for
dir
in
$VIRTUALENV_DIRS
;
do
...
...
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