File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -219,13 +219,14 @@ def default_data_dir(bin_dir: Optional[str]) -> str:
219
219
# Installed in site-packages or dist-packages, but invoked with python3 -m mypy;
220
220
# __file__ is .../blah/lib/python3.N/site-packages/mypy/build.py
221
221
# or .../blah/lib/python3.N/dist-packages/mypy/build.py (Debian)
222
+ # or .../blah/lib64/python3.N/dist-packages/mypy/build.py (Gentoo)
222
223
# or .../blah/lib/site-packages/mypy/build.py (Windows)
223
224
# blah may be a virtualenv or /usr/local. We want .../blah/lib/mypy.
224
225
lib = parent
225
226
for i in range (2 ):
226
227
lib = os .path .dirname (lib )
227
- if os .path .basename (lib ) == 'lib' :
228
- return os .path .join (lib , 'mypy' )
228
+ if os .path .basename (lib ) in ( 'lib' , 'lib32' , 'lib64' ) :
229
+ return os .path .join (os . path . dirname ( lib ) , 'lib/ mypy' )
229
230
subdir = os .path .join (parent , 'lib' , 'mypy' )
230
231
if os .path .isdir (subdir ):
231
232
# If installed via buildout, the __file__ is
You can’t perform that action at this time.
0 commit comments