Skip to content


Add a --setuptools option #356

merged 2 commits into from

3 participants


This adds an explicit --setuptools option, and an implicit $VIRTUALENV_SETUPTOOLS environment variable. It also explicitly sets the default value of use_distribute to False for backward compatibility. However, this will allow us in Debian to easily change the default to use distribute (as per Debian policy).

@jezdez jezdez merged commit c4eafdb into pypa:develop

1 check passed

Details default The Travis build passed

I've updated to the latest version of virtualenvwrapper (and thus, virtualenv), but it's still installing distribute instead of setuptools when running with --setuptools or the VIRTUALENVWRAPPER_SETUPTOOLS value set to true. Any idea why that would be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 14, 2012
  1. @warsaw

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

    warsaw committed
    envar, for overriding any default use of distribute.  No-op in Python 3.
  2. @warsaw
Showing with 10 additions and 0 deletions.
  1. +10 −0
@@ -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()
Something went wrong with that request. Please try again.