Commits

Anonymous committed 1e52f1f

making sure a setuptools requirement is turned into a distribute one

  • Participants
  • Parent commits 84d1581
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File pkg_resources.py

 
         while requirements:
             req = requirements.pop(0)   # process dependencies breadth-first
+            project_name = req.project_name.strip()
+            project_name = project_name.replace(' ', '')
+            if project_name in ('setuptools', 'setuptools>=0.6c9',
+                                'setuptools==0.6c9'):
+                req = Requirement.parse('distribute')
+
             if req in processed:
                 # Ignore cyclic or redundant dependencies
                 continue