mirror of https://github.com/pypa/pip
Ensure the egg_info directory exists before trying to write to it.
This commit is contained in:
parent
dbb5212aa6
commit
c6299ea040
|
@ -786,9 +786,9 @@ class InstallRequirement(object):
|
|||
if os.path.isdir(filename):
|
||||
filename += os.path.sep
|
||||
new_lines.append(
|
||||
os.path.relpath(
|
||||
prepend_root(filename), egg_info_dir)
|
||||
os.path.relpath(prepend_root(filename), egg_info_dir)
|
||||
)
|
||||
ensure_dir(egg_info_dir)
|
||||
inst_files_path = os.path.join(egg_info_dir, 'installed-files.txt')
|
||||
with open(inst_files_path, 'w') as f:
|
||||
f.write('\n'.join(new_lines) + '\n')
|
||||
|
|
Loading…
Reference in New Issue