File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -195,12 +195,11 @@ def _get_python_inc_posix_prefix(prefix):
195
195
196
196
def _get_python_inc_nt (prefix , spec_prefix , plat_specific ):
197
197
if python_build :
198
- # Include both the include and PC dir to ensure we can find
199
- # pyconfig.h
198
+ # Include both include dirs to ensure we can find pyconfig.h
200
199
return (
201
200
os .path .join (prefix , "include" )
202
201
+ os .path .pathsep
203
- + os .path .join ( prefix , "PC" )
202
+ + os .path .dirname ( sysconfig . get_config_h_filename () )
204
203
)
205
204
return os .path .join (prefix , "include" )
206
205
@@ -361,14 +360,7 @@ def customize_compiler(compiler): # noqa: C901
361
360
362
361
def get_config_h_filename ():
363
362
"""Return full pathname of installed pyconfig.h file."""
364
- if python_build :
365
- if os .name == "nt" :
366
- inc_dir = os .path .join (_sys_home or project_base , "PC" )
367
- else :
368
- inc_dir = _sys_home or project_base
369
- return os .path .join (inc_dir , 'pyconfig.h' )
370
- else :
371
- return sysconfig .get_config_h_filename ()
363
+ return sysconfig .get_config_h_filename ()
372
364
373
365
374
366
def get_makefile_filename ():
You can’t perform that action at this time.
0 commit comments