mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
fix pip zip with multiple arguments
This commit is contained in:
parent
74ccb3757c
commit
f3e65ea480
2 changed files with 6 additions and 2 deletions
|
@ -15,6 +15,8 @@ hg tip
|
|||
|
||||
* Fixed problem with not being able to install private git repositories.
|
||||
|
||||
* Make ``pip zip`` zip all its arguments, not just the first.
|
||||
|
||||
0.3.1
|
||||
-----
|
||||
|
||||
|
|
6
pip.py
6
pip.py
|
@ -645,11 +645,13 @@ class ZipCommand(Command):
|
|||
'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)
|
||||
else:
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue