Commits

Anonymous committed e06c416

returning if setuptools is not found

  • Participants
  • Parent commits 4696d12
  • Branches 0.6-maintenance
  • Tags 0.6.4

Comments (0)

Files changed (1)

File distribute_setup.py

             break
     if not found:
         log.warn('Could not locate setuptools*.egg-info')
+        return
+
+    log.warn('Removing elements out of the way...')
+    pkg_info = os.path.join(placeholder, file)
+    if os.path.isdir(pkg_info):
+        patched = _patch_egg_dir(pkg_info)
     else:
-        log.warn('Removing elements out of the way...')
-        pkg_info = os.path.join(placeholder, file)
-        if os.path.isdir(pkg_info):
-            patched = _patch_egg_dir(pkg_info)
-        else:
-            patched = _patch_file(pkg_info, SETUPTOOLS_PKG_INFO)
+        patched = _patch_file(pkg_info, SETUPTOOLS_PKG_INFO)
 
     if not patched:
         log.warn('%s already patched.', pkg_info)