Skip to content

Commit

Permalink
Also use sysconfig.get_config_h_filename() to implement distutils.sys…
Browse files Browse the repository at this point in the history
…config version
  • Loading branch information
zooba committed Dec 18, 2023
1 parent 93d1bc5 commit f24fc22
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,7 @@ def customize_compiler(compiler): # noqa: C901

def get_config_h_filename():
"""Return full pathname of installed pyconfig.h file."""
if python_build:
if os.name == "nt":
inc_dir = os.path.join(_sys_home or project_base, "PC")
else:
inc_dir = _sys_home or project_base
return os.path.join(inc_dir, 'pyconfig.h')
else:
return sysconfig.get_config_h_filename()
return sysconfig.get_config_h_filename()


def get_makefile_filename():
Expand Down

0 comments on commit f24fc22

Please sign in to comment.