Skip to content

Commit

Permalink
Merge pull request pypa#91 from lazka/use-stdlib-get_config_h_filename
Browse files Browse the repository at this point in the history
sysconfig: use get_config_h_filename() from the stdlib
  • Loading branch information
jaraco committed Dec 27, 2021
2 parents 9d0b8cd + 676e669 commit f56c3bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ def get_config_h_filename():
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:
inc_dir = get_python_inc(plat_specific=1)
return sysconfig.get_config_h_filename()

return os.path.join(inc_dir, 'pyconfig.h')


# Allow this value to be patched by pkgsrc. Ref pypa/distutils#16.
Expand Down

0 comments on commit f56c3bf

Please sign in to comment.