meson: keep Mako version checking in accord with build msg
Fixes: 52194ae4df
("meson: Ensure that mako is >= 0.8.0")
Signed-off-by: Luc Ma <luc@sietium.com>
Reported-by: Terry Zhang <terry@sietium.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22499>
This commit is contained in:
@@ -848,7 +848,7 @@ has_mako = run_command(
|
|||||||
'''
|
'''
|
||||||
from distutils.version import StrictVersion
|
from distutils.version import StrictVersion
|
||||||
import mako
|
import mako
|
||||||
assert StrictVersion(mako.__version__) > StrictVersion("0.8.0")
|
assert StrictVersion(mako.__version__) >= StrictVersion("0.8.0")
|
||||||
''', check: false)
|
''', check: false)
|
||||||
if has_mako.returncode() != 0
|
if has_mako.returncode() != 0
|
||||||
error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
|
error('Python (3.x) mako module >= 0.8.0 required to build mesa.')
|
||||||
|
Reference in New Issue
Block a user