diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-04-19 07:56:42 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-04-23 23:03:25 -0400 |
| commit | bda799dff2dc4b5d607f0e822b12ed0e2db38fb7 (patch) | |
| tree | 56637920cced8b73cf3c7c13174e0b45cb32b570 /test cases/python/1 basic | |
| parent | 01420bf8fc1ee6c1466e2fa4c9805267192dce26 (diff) | |
| download | meson-bda799dff2dc4b5d607f0e822b12ed0e2db38fb7.tar.gz | |
fix python.version() not working in some cases
import('python').find_installation('python').version() causes exception
because of a missing initialization, when `find_installation()` receives
a name or a path.
Diffstat (limited to 'test cases/python/1 basic')
| -rw-r--r-- | test cases/python/1 basic/meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/python/1 basic/meson.build b/test cases/python/1 basic/meson.build index 2e543dd7d..481a88179 100644 --- a/test cases/python/1 basic/meson.build +++ b/test cases/python/1 basic/meson.build @@ -8,6 +8,9 @@ if py_version.version_compare('< 3.2') error('MESON_SKIP_TEST python 3 required for tests') endif +py_full_version = py.version() +message(f'Using python version: @py_full_version@') + py_purelib = py.get_path('purelib') if not (py_purelib.endswith('site-packages') or py_purelib.endswith('dist-packages')) error('Python3 purelib path seems invalid? ' + py_purelib) |
