replace package.version.Version by internal code

This drops the dependency on the Python `packaging` module.

Signed-off-by: Ernesto de Gracia Herranz <ernestodgh@jfrog.com>
This commit is contained in:
Ernesto de Gracia Herranz
2024-07-04 11:04:38 +00:00
committed by Philip Withnall
parent 5de4d59c31
commit 38faeca62e
7 changed files with 29 additions and 9 deletions

View File

@@ -2457,7 +2457,7 @@ endif
glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline)
python = import('python').find_installation(modules: ['packaging'])
python = import('python').find_installation()
python_version = python.language_version()
python_version_req = '>=3.7'