File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,12 @@ def get_base_dirs():
127
127
if options ['basedirlist' ]:
128
128
return options ['basedirlist' ]
129
129
130
+ if os .environ .get ('MPLBASEDIRLIST' ):
131
+ return os .environ .get ('MPLBASEDIRLIST' ).split (os .pathsep )
132
+
130
133
win_bases = ['win32_static' , ]
131
- # on windows, we also add the <installdir>\Library of the local interperter, as
132
- # conda installs libs/includes there
134
+ # on conda windows, we also add the <installdir>\Library of the local interperter,
135
+ # as conda installs libs/includes there
133
136
if os .getenv ('CONDA_DEFAULT_ENV' ):
134
137
win_bases .append (os .path .join (os .getenv ('CONDA_DEFAULT_ENV' ), "Library" ))
135
138
@@ -149,8 +152,11 @@ def get_include_dirs():
149
152
Returns a list of standard include directories on this platform.
150
153
"""
151
154
include_dirs = [os .path .join (d , 'include' ) for d in get_base_dirs ()]
152
- include_dirs .extend (
153
- os .environ .get ('CPLUS_INCLUDE_PATH' , '' ).split (os .pathsep ))
155
+ if sys .platform != 'win32' :
156
+ # gcc includes this dir automatically, so also look for headers in
157
+ # these dirs
158
+ include_dirs .extend (
159
+ os .environ .get ('CPLUS_INCLUDE_PATH' , '' ).split (os .pathsep ))
154
160
return include_dirs
155
161
156
162
You can’t perform that action at this time.
0 commit comments