Permalink
Browse files

Merge pull request #356 from warsaw/setuptools

Add a --setuptools option
  • Loading branch information...
2 parents 7ff692b + c81af55 commit c4eafdbf00f10a5e85e76d941f268cdcc5d3f13c @jezdez jezdez committed Nov 21, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 virtualenv.py
View
@@ -858,6 +858,16 @@ def main():
help='Use Distribute instead of Setuptools. Set environ variable '
'VIRTUALENV_DISTRIBUTE to make it the default ')
+ parser.add_option(
+ '--setuptools',
+ dest='use_distribute',
+ action='store_false',
+ help='Use Setuptools instead of Distribute. Set environ variable '
+ 'VIRTUALENV_SETUPTOOLS to make it the default ')
+
+ # Set this to True to use distribute by default, even in Python 2.
+ parser.set_defaults(use_distribute=False)
+
default_search_dirs = file_search_dirs()
parser.add_option(
'--extra-search-dir',

0 comments on commit c4eafdb

Please sign in to comment.