Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

create virtualenv if it is broken (no python script)

  • Loading branch information...
commit 821dcf013797db051cafb012f49876aa736742d6 1 parent eac39c6
Sridhar Ratnakumar authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 toxbootstrap.py
6 toxbootstrap.py
View
@@ -89,7 +89,7 @@ def cmdline(argv=None):
os.chdir('.tox')
# create virtual environment
- if not path.isdir('toxinstall'):
+ if not path.isdir('toxinstall') or not has_script('toxinstall', 'python'):
# get virtualenv.py
if not path.isfile('virtualenv.py'):
wget(VIRTUALENVPY_URL)
@@ -100,8 +100,8 @@ def cmdline(argv=None):
# this should be to first look for tox in the global scripts/ directory
run('python virtualenv.py --no-site-packages --distribute toxinstall')
- assert has_script('toxinstall', 'python')
- assert has_script('toxinstall', 'pip')
+ assert has_script('toxinstall', 'python'), 'no python script'
+ assert has_script('toxinstall', 'pip'), 'no pip script'
pip = get_script_path('toxinstall', 'pip')
Please sign in to comment.
Something went wrong with that request. Please try again.