1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Don't check write access on the same path twice

This commit is contained in:
Thomas Kluyver 2019-10-20 21:23:49 +01:00
parent ecac7a17b5
commit 79f0591630

View file

@ -596,7 +596,7 @@ def get_lib_location_guesses(*args, **kwargs):
def site_packages_writable(**kwargs):
return all(
test_writable_dir(d) for d in get_lib_location_guesses(**kwargs)
test_writable_dir(d) for d in set(get_lib_location_guesses(**kwargs))
)