@@ -535,24 +535,28 @@ def _warn_about_conflicts(self, conflict_details):
535
535
536
536
537
537
def get_lib_location_guesses (
538
- user = False , # type: bool
539
- home = None , # type: Optional[str]
540
- root = None , # type: Optional[str]
541
- isolated = False , # type: bool
542
- prefix = None # type: Optional[str]
538
+ user = False , # type: bool
539
+ home = None , # type: Optional[str]
540
+ root = None , # type: Optional[str]
541
+ isolated = False , # type: bool
542
+ prefix = None , # type: Optional[str]
543
543
):
544
- # type:(...) -> List[str]
544
+ # type: (...) -> List[str]
545
545
scheme = distutils_scheme ('' , user = user , home = home , root = root ,
546
546
isolated = isolated , prefix = prefix )
547
547
return [scheme ['purelib' ], scheme ['platlib' ]]
548
548
549
549
550
- def site_packages_writable (root , isolated ):
551
- # type: (Optional[str], bool) -> bool
552
- return all (
553
- test_writable_dir (d ) for d in set (
554
- get_lib_location_guesses (root = root , isolated = isolated ))
555
- )
550
+ def site_packages_writable (
551
+ user = False , # type: bool
552
+ root = None , # type: Optional[str]
553
+ isolated = False , # type: bool
554
+ prefix = None , # type: Optional[str]
555
+ ):
556
+ # type: (...) -> bool
557
+ return all (map (test_writable_dir , set (get_lib_location_guesses (
558
+ user = user , root = root , isolated = isolated , prefix = prefix ,
559
+ ))))
556
560
557
561
558
562
def decide_user_install (
0 commit comments