[RFCv2 02/46] maint: Check python3-clang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make sure python3-clang has been installed.

Signed-off-by: Shi Lei <shi_lei@xxxxxxxxxxxxxx>
---
 meson.build | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meson.build b/meson.build
index 1eadea3..f97a03b 100644
--- a/meson.build
+++ b/meson.build
@@ -2504,3 +2504,8 @@ if conf.has('WITH_QEMU')
   }
   summary(priv_summary, section: 'Privileges')
 endif
+
+py3_clang = run_command('python3', '-c', 'import clang.cindex;print("ok")')
+if py3_clang.returncode() != 0
+  error('python3-clang is required.')
+endif
-- 
2.25.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux