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
26dd3828
Commit
26dd3828
authored
Feb 26, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start Decoupled Pythons
parent
ead7b1a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
compile
bin/compile
+7
-2
No files found.
bin/compile
View file @
26dd3828
...
@@ -15,6 +15,7 @@ NAME=$($BIN_DIR/detect $BUILD_DIR)
...
@@ -15,6 +15,7 @@ NAME=$($BIN_DIR/detect $BUILD_DIR)
PIP_DOWNLOAD_CACHE
=
${
PIP_DOWNLOAD_CACHE
:-
$CACHE_DIR
/pip_downloads
}
PIP_DOWNLOAD_CACHE
=
${
PIP_DOWNLOAD_CACHE
:-
$CACHE_DIR
/pip_downloads
}
VIRTUALENV_DIRS
=
"bin include lib"
VIRTUALENV_DIRS
=
"bin include lib"
VENDORED_MEMCACHED
=
"http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"
VENDORED_MEMCACHED
=
"http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"
PYTHON_VERSION
=
"2.7"
unset
GIT_DIR
unset
GIT_DIR
export
PIP_DOWNLOAD_CACHE
export
PIP_DOWNLOAD_CACHE
...
@@ -54,10 +55,14 @@ done
...
@@ -54,10 +55,14 @@ done
# Create virtualenv. Rebuild if corrupt.
# Create virtualenv. Rebuild if corrupt.
set
+e
set
+e
echo
"-----> Preparing Python (
$PYTHON_VERSION
)"
PYTHON_EXE
=
$(
python-build
install
$PYTHON_VERSION
--quiet
)
echo
"-----> Preparing virtualenv version
$(
virtualenv
--version
)
"
echo
"-----> Preparing virtualenv version
$(
virtualenv
--version
)
"
# Try to create the virtualenv.
# Try to create the virtualenv.
OUT
=
$(
virtualenv
--
distribute
--never-download
--prompt
=
venv
.
2>&1
)
OUT
=
$(
virtualenv
--
python
$PYTHON_EXE
--distribute
--never-download
--prompt
=
venv
.
2>&1
)
# If there's an error, purge and recreate.
# If there's an error, purge and recreate.
[
$?
-ne
0
]
&&
{
[
$?
-ne
0
]
&&
{
...
@@ -65,7 +70,7 @@ OUT=$(virtualenv --distribute --never-download --prompt=venv . 2>&1)
...
@@ -65,7 +70,7 @@ OUT=$(virtualenv --distribute --never-download --prompt=venv . 2>&1)
for
dir
in
$VIRTUALENV_DIRS
;
do
for
dir
in
$VIRTUALENV_DIRS
;
do
rm
-fr
$dir
&> /dev/null
||
true
rm
-fr
$dir
&> /dev/null
||
true
done
done
OUT
=
$(
virtualenv
--distribute
--never-download
--prompt
=
venv
.
)
OUT
=
$(
virtualenv
--
python
$PYTHON_EXE
--
distribute
--never-download
--prompt
=
venv
.
)
}
}
echo
"
$OUT
"
| indent
echo
"
$OUT
"
| indent
...
...
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