File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7
7
library found in Python 3.7. This file is run each mypy run, so it should be kept as fast as
8
8
possible.
9
9
"""
10
- import os
11
- import site
12
10
import sys
13
- import sysconfig
14
11
15
12
if __name__ == "__main__" :
16
13
# HACK: We don't want to pick up mypy.types as the top-level types
22
19
23
20
sys .path = old_sys_path
24
21
22
+ import os
23
+ import site
24
+ import sysconfig
25
+
25
26
26
27
def getsitepackages () -> list [str ]:
27
28
res = []
@@ -31,9 +32,7 @@ def getsitepackages() -> list[str]:
31
32
if hasattr (site , "getusersitepackages" ) and site .ENABLE_USER_SITE :
32
33
res .insert (0 , site .getusersitepackages ())
33
34
else :
34
- from distutils .sysconfig import get_python_lib
35
-
36
- res = [get_python_lib ()]
35
+ res = [sysconfig .get_paths ()["purelib" ]]
37
36
return res
38
37
39
38
You can’t perform that action at this time.
0 commit comments