Permalink
Browse files

Add a --setuptools option (which implicitly adds $VIRTUALENV_SETUPTOOLS)

envar, for overriding any default use of distribute.  No-op in Python 3.
  • Loading branch information...
1 parent 57d6b24 commit 1a4b664f2f8e0fe9726f2c55dcc964ad68db9a8e @warsaw warsaw committed Nov 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 virtualenv.py
View
@@ -858,6 +858,13 @@ 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 ')
+
default_search_dirs = file_search_dirs()
parser.add_option(
'--extra-search-dir',

0 comments on commit 1a4b664

Please sign in to comment.