Commits

Anonymous committed d0b0942

added the DONT_PATCH_SETUPTOOLS environment variable to tell the Distribute installer not to patch an existing setuptools

  • Participants
  • Parent commits b603f7b

Comments (0)

Files changed (1)

File virtualenv.py

         # the source is found, let's chdir
         if source is not None and os.path.exists(source):
             os.chdir(os.path.dirname(source))
-        logger.info('No %s egg found; downloading' % project_name)
+        else:
+            logger.info('No %s egg found; downloading' % project_name)
         cmd.extend(['--always-copy', '-U', project_name])
     logger.start_progress('Installing %s...' % project_name)
     logger.indent += 2
     cwd = None
+    if project_name == 'distribute':
+        env['DONT_PATCH_SETUPTOOLS'] = 'true'
 
     def _filter_ez_setup(line):
         return filter_ez_setup(line, project_name)