Skip to content

Commit da95f04

Browse files
committed
Make the lib64 symlink relative again, but without the use of '.' Fixes #338.
1 parent 502deef commit da95f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualenv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,9 +1575,9 @@ def fix_lib64(lib_dir):
15751575
lib64_link = os.path.join(top_level, 'lib64')
15761576
assert os.path.basename(lib_parent) == 'lib', (
15771577
"Unexpected parent dir: %r" % lib_parent)
1578-
if os.path.lexists(lib64_link) and os.readlink(lib64_link) == lib_dir:
1578+
if os.path.lexists(lib64_link):
15791579
return
1580-
os.symlink(lib_dir, lib64_link)
1580+
os.symlink('lib', lib64_link)
15811581

15821582
def resolve_interpreter(exe):
15831583
"""

0 commit comments

Comments
 (0)