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.
1 parent c54d404 commit 9b195bcCopy full SHA for 9b195bc
src/pip/_internal/locations/__init__.py
@@ -64,8 +64,8 @@ def _looks_like_bpo_44860() -> bool:
64
65
def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
66
platlib = scheme["platlib"]
67
- if "/$platlibdir/" in platlib and hasattr(sys, "platlibdir"):
68
- platlib = platlib.replace("/$platlibdir/", f"/{sys.platlibdir}/")
+ if "/$platlibdir/" in platlib:
+ platlib = platlib.replace("/$platlibdir/", f"/{_PLATLIBDIR}/")
69
if "/lib64/" not in platlib:
70
return False
71
unpatched = platlib.replace("/lib64/", "/lib/")
0 commit comments