make pip download work with vcs urls having the subdirectory option

This commit is contained in:
Stéphane Bidoul 2016-02-09 10:39:46 +01:00
parent 3f4a796ff8
commit 4ccfec0e80
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ class InstallRequirement(object):
archive_path, 'w', zipfile.ZIP_DEFLATED,
allowZip64=True
)
dir = os.path.normcase(os.path.abspath(self.source_dir))
dir = os.path.normcase(os.path.abspath(self.setup_py_dir))
for dirpath, dirnames, filenames in os.walk(dir):
if 'pip-egg-info' in dirnames:
dirnames.remove('pip-egg-info')