aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/dependencies/python.py')
-rw-r--r--mesonbuild/dependencies/python.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index 1bbcdfe..48ea31c 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -188,6 +188,9 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase):
if mesonlib.is_windows() and self.get_windows_python_arch() == '64' and self.major_version == 2:
self.compile_args += ['-DMS_WIN64']
+ if not self.clib_compiler.has_header('Python.h', '', environment, extra_args=self.compile_args):
+ self.is_found = False
+
def find_libpy(self, environment: 'Environment') -> None:
if self.is_pypy:
if self.major_version == 3: