From 229e4db424b87722b6c92ccb25033ea7c39c324f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 16 Apr 2019 20:32:45 -0700 Subject: [PATCH] Use the custom check_python_headers on Darwin too --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index a50904d1..3575c4f2 100644 --- a/wscript +++ b/wscript @@ -92,9 +92,11 @@ def configure(conf): conf.env.PYTHON = conf.options.python conf.load('python') conf.check_python_version(minver=(2,7,0)) - if isWindows: + if isWindows or isDarwin: # Search for the Python headers without doing some stuff that could - # incorrectly fail on Windows. See my_check_python_headers below. + # incorrectly fail on Windows. Seems to help on Darwin too. 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()