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
bccec5ce
Commit
bccec5ce
authored
Jun 01, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #47 from ojno/master
Option to purge and recreate virtualenv
parents
9d0bf98a
d6fbb299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
compile
bin/compile
+7
-5
No files found.
bin/compile
View file @
bccec5ce
...
@@ -160,12 +160,14 @@ puts-step "Creating Virtualenv version $(virtualenv --version)"
...
@@ -160,12 +160,14 @@ puts-step "Creating Virtualenv version $(virtualenv --version)"
# Try to create the virtualenv.
# Try to create the virtualenv.
OUT
=
$(
virtualenv
--python
$PYTHON_EXE
--distribute
--never-download
--prompt
=
'(venv) '
$VIRTUALENV_LOC
2>&1
)
OUT
=
$(
virtualenv
--python
$PYTHON_EXE
--distribute
--never-download
--prompt
=
'(venv) '
$VIRTUALENV_LOC
2>&1
)
# If there's an error, purge and recreate.
[
$?
-ne
0
-o
-n
"
$CLEAN_VIRTUALENV
"
]
&&
{
[
$?
-ne
0
]
&&
{
if
[
-n
"
$CLEAN_VIRTUALENV
"
]
puts-warn
"Virtualenv corrupt, rebuilding."
then
echo
" ! CLEAN_VIRTUALENV set, rebuilding virtualenv."
else
echo
" ! Virtualenv corrupt, rebuilding."
fi
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
--python
$PYTHON_EXE
--distribute
--never-download
--prompt
=
'(venv) '
$VIRTUALENV_LOC
)
OUT
=
$(
virtualenv
--python
$PYTHON_EXE
--distribute
--never-download
--prompt
=
'(venv) '
$VIRTUALENV_LOC
)
}
}
echo
"
$OUT
"
| indent
echo
"
$OUT
"
| indent
...
@@ -222,4 +224,4 @@ done
...
@@ -222,4 +224,4 @@ done
# Experimental post_compile hook.
# Experimental post_compile hook.
source
$BIN_DIR
/steps/hooks/post_compile
source
$BIN_DIR
/steps/hooks/post_compile
# <a href="http://github.com/heroku/heroku-buildpack-python"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
# <a href="http://github.com/heroku/heroku-buildpack-python"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
\ No newline at end of file
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