File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/pip/_internal/locations Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -486,8 +486,9 @@ def _looks_like_apple_library(path: str) -> bool:
486
486
def get_isolated_environment_lib_paths (prefix : str ) -> List [str ]:
487
487
"""Return the lib locations under ``prefix``."""
488
488
new_pure , new_plat = _sysconfig .get_isolated_environment_lib_paths (prefix )
489
+ new_lib_paths = _deduplicated (new_pure , new_plat )
489
490
if _USE_SYSCONFIG :
490
- return _deduplicated ( new_pure , new_plat )
491
+ return new_lib_paths
491
492
492
493
old_pure , old_plat = _distutils .get_isolated_environment_lib_paths (prefix )
493
494
old_lib_paths = _deduplicated (old_pure , old_plat )
@@ -497,7 +498,7 @@ def get_isolated_environment_lib_paths(prefix: str) -> List[str]:
497
498
# cause serious build isolation bugs when Apple starts shipping 3.10 because
498
499
# pip will install build backends to the wrong location. This tells users
499
500
# who is at fault so Apple may notice it and fix the issue in time.
500
- if all (_looks_like_apple_library (p ) for p in old_lib_paths ):
501
+ if all (_looks_like_apple_library (p ) for p in new_lib_paths ):
501
502
deprecated (
502
503
reason = (
503
504
"Python distributed by Apple's Command Line Tools incorrectly "
You can’t perform that action at this time.
0 commit comments