Skip to content

Commit

Permalink
Merge pull request #10409 from redhat-new-platlib-patch-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Sep 5, 2021
2 parents b9fcd55 + 1a534b1 commit c928d89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def _looks_like_bpo_44860() -> bool:

def _looks_like_red_hat_patched_platlib_purelib(scheme: Dict[str, str]) -> bool:
platlib = scheme["platlib"]
if "/$platlibdir/" in platlib and hasattr(sys, "platlibdir"):
platlib = platlib.replace("/$platlibdir/", f"/{sys.platlibdir}/")
if "/lib64/" not in platlib:
return False
unpatched = platlib.replace("/lib64/", "/lib/")
Expand Down

0 comments on commit c928d89

Please sign in to comment.