]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Require Python dependency which can be embedded for pylibmount
authorJordan Williams <jordan@jwillikers.com>
Mon, 8 Apr 2024 14:33:19 +0000 (09:33 -0500)
committerJordan Williams <jordan@jwillikers.com>
Mon, 8 Apr 2024 14:35:33 +0000 (09:35 -0500)
Meson doesn't properly check that the necessary Python.h header file is
available for the pylibmount module.
Passing true for the embed keyword argument for the Python dependency
method ensures that this header file is available.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
libmount/python/meson.build

index 0957bca06b01111598ee8326c9bf68216c838882..72985eca6b2144ce3c3e82053af86890e1ce9b8b 100644 (file)
@@ -17,7 +17,7 @@ if build_python
     pylibmount_sources,
     include_directories : [dir_include],
     subdir : 'libmount',
-    dependencies : [mount_dep, python.dependency()],
+    dependencies : [mount_dep, python.dependency(embed: true)],
     c_args : [
       '-Wno-cast-function-type',