Ian Bicking  committed 5d74fde

fix pip zip with multiple arguments

  • Participants
  • Parent commits ee602a4
  • Branches trunk

Comments (0)

Files changed (2)

File docs/news.txt

 * Fixed problem with not being able to install private git repositories.
+* Make ``pip zip`` zip all its arguments, not just the first.
                     'The module %s (in %s) is not a directory; cannot be zipped'
                     % (module_name, filename))
             packages.append((module_name, filename))
+        last_status = None
         for module_name, filename in packages:
             if options.unzip:
-                return self.unzip_package(module_name, filename)
+                last_status = self.unzip_package(module_name, filename)
-                return self.zip_package(module_name, filename, options.no_pyc)
+                last_status = self.zip_package(module_name, filename, options.no_pyc)
+        return last_status
     def unzip_package(self, module_name, filename):
         zip_filename = os.path.dirname(filename)