python dependency: verify that the python header is installed for sysconfig

We may or may not care that the library can be found. If link_libpython
is false, we allow it to be missing and still find the dependency.
pull/11250/head
Eli Schwartz 2 years ago committed by Dylan Baker
parent 9bf718fcee
commit b5d842305e
  1. 3
      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:

Loading…
Cancel
Save