Commit f8beb61 1 parent 19e8022 commit f8beb61 Copy full SHA for f8beb61
File tree 4 files changed +12
-8
lines changed
4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 18
18
19
19
from pip import __file__ as pip_location
20
20
from pip ._internal .cli .spinners import open_spinner
21
- from pip ._internal .locations import get_platlib , get_prefixed_libs , get_purelib
21
+ from pip ._internal .locations import (
22
+ get_isolated_environment_lib_paths ,
23
+ get_platlib ,
24
+ get_purelib ,
25
+ )
22
26
from pip ._internal .metadata import get_default_environment , get_environment
23
27
from pip ._internal .utils .subprocess import call_subprocess
24
28
from pip ._internal .utils .temp_dir import TempDirectory , tempdir_kinds
@@ -37,7 +41,7 @@ def __init__(self, path: str) -> None:
37
41
"nt" if os .name == "nt" else "posix_prefix" ,
38
42
vars = {"base" : path , "platbase" : path },
39
43
)["scripts" ]
40
- self .lib_dirs = get_prefixed_libs (path )
44
+ self .lib_dirs = get_isolated_environment_lib_paths (path )
41
45
42
46
43
47
def get_runnable_pip () -> str :
Original file line number Diff line number Diff line change 27
27
"get_bin_user" ,
28
28
"get_major_minor_version" ,
29
29
"get_platlib" ,
30
- "get_prefixed_libs " ,
30
+ "get_isolated_environment_lib_paths " ,
31
31
"get_purelib" ,
32
32
"get_scheme" ,
33
33
"get_src_prefix" ,
@@ -482,13 +482,13 @@ def _looks_like_apple_library(path: str) -> bool:
482
482
return path == f"/Library/Python/{ get_major_minor_version ()} /site-packages"
483
483
484
484
485
- def get_prefixed_libs (prefix : str ) -> List [str ]:
485
+ def get_isolated_environment_lib_paths (prefix : str ) -> List [str ]:
486
486
"""Return the lib locations under ``prefix``."""
487
- new_pure , new_plat = _sysconfig .get_prefixed_libs (prefix )
487
+ new_pure , new_plat = _sysconfig .get_isolated_environment_lib_paths (prefix )
488
488
if _USE_SYSCONFIG :
489
489
return _deduplicated (new_pure , new_plat )
490
490
491
- old_pure , old_plat = _distutils .get_prefixed_libs (prefix )
491
+ old_pure , old_plat = _distutils .get_isolated_environment_lib_paths (prefix )
492
492
old_lib_paths = _deduplicated (old_pure , old_plat )
493
493
494
494
# Apple's Python (shipped with Xcode and Command Line Tools) hard-code
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def get_platlib() -> str:
173
173
return get_python_lib (plat_specific = True )
174
174
175
175
176
- def get_prefixed_libs (prefix : str ) -> Tuple [str , str ]:
176
+ def get_isolated_environment_lib_paths (prefix : str ) -> Tuple [str , str ]:
177
177
return (
178
178
get_python_lib (plat_specific = False , prefix = prefix ),
179
179
get_python_lib (plat_specific = True , prefix = prefix ),
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ def get_platlib() -> str:
213
213
return sysconfig .get_paths ()["platlib" ]
214
214
215
215
216
- def get_prefixed_libs (prefix : str ) -> typing .Tuple [str , str ]:
216
+ def get_isolated_environment_lib_paths (prefix : str ) -> typing .Tuple [str , str ]:
217
217
vars = {"base" : prefix , "platbase" : prefix }
218
218
if "venv" in sysconfig .get_scheme_names ():
219
219
paths = sysconfig .get_paths (vars = vars , scheme = "venv" )
You can’t perform that action at this time.
0 commit comments