[Mesa-dev] [PATCH v2 2/5] meson: use python3 module to find python3

Mathieu Bridon bochecha at daitauha.fr
Thu Aug 16 10:25:07 UTC 2018


On Thu, 2018-08-16 at 11:00 +0100, Eric Engestrom wrote:
> On Wednesday, 2018-08-15 09:18:05 -0700, Dylan Baker wrote:
> > 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()
> 
> You'll need to bump meson_version to 0.46 if you want to do that;
> otherwise you can use the patch I sent last month ;)

Unless I missed something, the "python3" module and its find_python()
method were added in 0.38.0:

http://mesonbuild.com/Python-3-module.html

Are you confusing this with the "python" module, which was added in
0.46.0?

http://mesonbuild.com/Python-module.html


-- 
Mathieu



More information about the mesa-dev mailing list