diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-14 14:52:39 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-02-22 10:32:09 -0800 |
commit | b5d842305e025a6aa965b9c1d073c723e01e141b (patch) | |
tree | 7ce8d6411cc03622f6facaba1f0b909088140d1b | |
parent | 9bf718fcee0d9e30b5de2d6a2f154aa417aa8d4c (diff) | |
download | meson-b5d842305e025a6aa965b9c1d073c723e01e141b.zip meson-b5d842305e025a6aa965b9c1d073c723e01e141b.tar.gz meson-b5d842305e025a6aa965b9c1d073c723e01e141b.tar.bz2 |
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.
-rw-r--r-- | mesonbuild/dependencies/python.py | 3 |
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: |