[Mesa-dev] [PATCH 2/5] meson: use python3 module to find python3
Dylan Baker
dylan at pnwbakers.com
Tue Aug 14 17:34:46 UTC 2018
This handy helper is nice for OSes that are not linux or BSD like (mac
and windows) as it knows how to find python3 in odd places.
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 5dc9b45eb42..c8bac35659f 100644
--- a/meson.build
+++ b/meson.build
@@ -697,7 +697,7 @@ if with_platform_haiku
pre_args += '-DHAVE_HAIKU_PLATFORM'
endif
-prog_python = find_program('python3')
+prog_python = import('python3').find_python()
has_mako = run_command(prog_python, '-c', 'import mako; assert mako.__version__ >= "0.8.0"')
if has_mako.returncode() != 0
error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
--
2.18.0
More information about the mesa-dev
mailing list