Build fails with - ERROR: python is missing modules: packaging
OS: Debian Stable
On git 4607dd77:
Checking if "XATTR_NOFOLLOW" compiles: NO
Checking for function "strlcpy" : NO
Checking if "/proc/self/cmdline" runs: YES
Program python3 (packaging) found: NO
meson.build:2435:26: ERROR: python is missing modules: packaging
Debian doesn't have default python
set by default.
$ python
bash: python: command not found
Though installing python-is-python3
creates symlink to python3
, can we make the python3
requirement explicit.
Something like below:
--- a/meson.build
+++ b/meson.build
@@ -2432,7 +2432,8 @@ endif
glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline)
-python = import('python').find_installation(modules: ['packaging'])
+python = import('python').find_installation('python3', modules: ['packaging'])
+
python_version = python.language_version()
python_version_req = '>=3.7'