We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9923c1a + 501b774 commit fc3a8e7Copy full SHA for fc3a8e7
news/4495.bugfix
@@ -0,0 +1 @@
1
+Fix a "No such file or directory" error when using --prefix.
pip/req/req_install.py
@@ -789,9 +789,9 @@ def prepend_root(path):
789
if os.path.isdir(filename):
790
filename += os.path.sep
791
new_lines.append(
792
- os.path.relpath(
793
- prepend_root(filename), egg_info_dir)
+ os.path.relpath(prepend_root(filename), egg_info_dir)
794
)
+ ensure_dir(egg_info_dir)
795
inst_files_path = os.path.join(egg_info_dir, 'installed-files.txt')
796
with open(inst_files_path, 'w') as f:
797
f.write('\n'.join(new_lines) + '\n')
0 commit comments