[Mesa-dev] [PATCH 1/2] meson: check for python2 mako

Dylan Baker dylan at pnwbakers.com
Fri Sep 29 16:14:58 UTC 2017


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index 5353a417484..add27b5dbac 100644
--- a/meson.build
+++ b/meson.build
@@ -53,6 +53,10 @@ if _vulkan_drivers != ''
 endif
 
 prog_python2 = find_program('python2')
+has_mako = run_command(prog_python2, '-c', 'import mako')
+if has_mako.returncode() != 0
+  error('Python (2.x) mako module required to build mesa.')
+endif
 
 cc = meson.get_compiler('c')
 if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
-- 
2.14.1



More information about the mesa-dev mailing list