Skip to content

Commit

Permalink
Use unmodified WAF check_python_headers on Windows
Browse files Browse the repository at this point in the history
Unsure why this was needed in the first place as it seems to build fine now.
Presumably lots of things have been fixed in WAF since this was a problem.
  • Loading branch information
swt2c committed Sep 1, 2024
1 parent d809a7e commit c4d944b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,7 @@ def configure(conf):
conf.env.PYTHON = conf.options.python
conf.load('python')
conf.check_python_version(minver=(3,7,0))
if isWindows:
# Search for the Python headers without doing some stuff that could
# incorrectly fail on Windows. See my_check_python_headers below.
# TODO: Check if it can/should be used on other platforms too.
conf.my_check_python_headers()
else:
conf.check_python_headers(features='pyext')
conf.check_python_headers(features='pyext')

# fetch and save the debug options
conf.env.debug = conf.options.debug
Expand Down

0 comments on commit c4d944b

Please sign in to comment.