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
cd01dc0c
Commit
cd01dc0c
authored
Jan 18, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activate and utilize virtualenv.
Export PIP_DOWNLOAD_CACHE
parent
2750238a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
compile
bin/compile
+10
-3
No files found.
bin/compile
View file @
cd01dc0c
...
...
@@ -13,6 +13,8 @@ PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
VIRTUALENV_DIRS
=
"bin include lib"
VENDORED_MEMCACHED
=
"http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"
export
PIP_DOWNLOAD_CACHE
indent
()
{
RE
=
"s/^/ /"
[
$(
uname
)
==
"Darwin"
]
&&
sed
-l
"
$RE
"
||
sed
-u
"
$RE
"
...
...
@@ -93,6 +95,8 @@ if [ "$NAME" = "Python/Django" ]; then
import os
import sys
import urlparse
# Register database schemes in URLs.
urlparse.uses_netloc.append('postgres')
urlparse.uses_netloc.append('mysql')
...
...
@@ -129,13 +133,16 @@ except Exception:
EOF
fi
echo
"-----> Activating virtualenv"
source
bin/activate
if
(
grep
-Fiq
"hg+"
requirements.txt
)
then
PIP_DOWNLOAD_CACHE
=
$PIP_DOWNLOAD_CACHE
bin/pip
install
--use-mirrors
mercurial | indent
source
bin/activate
pip
install
--use-mirrors
mercurial | indent
fi
echo
"-----> Installing dependencies using pip version
$(
bin/pip
--version
|
awk
'{print $2}'
)
"
PIP_DOWNLOAD_CACHE
=
$PIP_DOWNLOAD_CACHE
bin/
pip
install
--use-mirrors
-r
requirements.txt | indent
pip
install
--use-mirrors
-r
requirements.txt | indent
set
+e
OUT
=
$(
virtualenv
--relocatable
.
)
...
...
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