Skip to content

Commit c1e15c6

Browse files
author
stonebig
committed
self-applied pypa/pip#3448
1 parent 0b88f5c commit c1e15c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

winpython/wppm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ def patch_standard_packages(self, package_name=''):
464464
r"\Lib\site-packages\pip\_vendor\distlib\scripts.py"),
465465
" executable = get_executable()",
466466
" executable = os.path.join(os.path.basename(get_executable()))")
467+
# ensure pip wheel will register relative PATH in 'RECORD' files
468+
utils.patch_sourcefile(
469+
self.target + (
470+
r"\Lib\site-packages\pip\wheel.py"),
471+
" writer.writerow((f, h, l))",
472+
" writer.writerow((normpath(f, lib_dir), h, l))")
473+
467474
# create movable launchers for previous package installations
468475
self.patch_all_shebang()
469476

0 commit comments

Comments
 (0)