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>
(cherry picked from commit b5a9021708)
This commit is contained in:
Luc Ma 2023-04-14 18:53:57 +08:00 committed by Eric Engestrom
parent 2fe4eaa3d0
commit 279c4822c5
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@
"description": "meson: keep Mako version checking in accord with build msg",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "52194ae4df18c7211cef69354a686eabc297a18d"
},

View File

@ -841,7 +841,7 @@ has_mako = run_command(
'''
from distutils.version import StrictVersion
import mako
assert StrictVersion(mako.__version__) > StrictVersion("0.8.0")
assert StrictVersion(mako.__version__) >= StrictVersion("0.8.0")
''', check: false)
if has_mako.returncode() != 0
error('Python (3.x) mako module >= 0.8.0 required to build mesa.')