Commits

tarek  committed 05aa7bf

unknown setuptools version can be added in the working set, refs #90

  • Participants
  • Parent commits 828960c
  • Branches 0.6-maintenance

Comments (0)

Files changed (4)

 =======
 
 -----
+0.6.9
+-----
+
+* Issue 90: unknown setuptools version can be added in the working set
+*
+
+-----
 0.6.8
 -----
 

File distribute.egg-info/entry_points.txt

 eager_resources = setuptools.dist:assert_string_list
 zip_safe = setuptools.dist:assert_bool
 test_loader = setuptools.dist:check_importable
+packages = setuptools.dist:check_packages
 convert_2to3_doctests = setuptools.dist:assert_string_list
 tests_require = setuptools.dist:check_requirements
 

File pkg_resources.py

         loc = loc or self.location
 
         if self.project_name == 'setuptools':
-            if '0.7' in self.version:
+            try:
+                version = self.version
+            except ValueError:
+                version = ''
+            if '0.7' in version:
                 raise ValueError(
                     "A 0.7-series setuptools cannot be installed "
                     "with distribute")

File setuptools/tests/test_resources.py

             version="0.6c9")
         ws.add(d2)
 
-
-
-
-
-
-
-
-
-
+        # a unexisting version needs to work
+        ws = WorkingSet([])
+        d3 = Distribution(
+            "/some/path",
+            project_name="setuptools")
+        ws.add(d3)
 
 
 class EntryPointTests(TestCase):