diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-08-21 08:24:35 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-08-22 22:14:59 -0400 |
commit | 0063eb251e836e777b427cbe59b43ab937ac1924 (patch) | |
tree | 53a17bb0015b125b45b8884e4e882f10b28392ac /run_project_tests.py | |
parent | 2a7125928ef0829c93fcb1edb57c8859c59a83bb (diff) | |
download | meson-0063eb251e836e777b427cbe59b43ab937ac1924.zip meson-0063eb251e836e777b427cbe59b43ab937ac1924.tar.gz meson-0063eb251e836e777b427cbe59b43ab937ac1924.tar.bz2 |
python: Workaround broken install path
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 154b66f..5768f0c 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -148,7 +148,6 @@ class InstalledFile: (env.machines.host.is_windows() and compiler in {'pgi', 'dmd', 'ldc'})): canonical_compiler = 'msvc' - python_paths = python.info['install_paths'] python_suffix = python.info['suffix'] has_pdb = False @@ -171,8 +170,8 @@ class InstalledFile: # Handle the different types if self.typ in {'py_implib', 'python_lib', 'python_file'}: val = p.as_posix() - val = val.replace('@PYTHON_PLATLIB@', python_paths['platlib']) - val = val.replace('@PYTHON_PURELIB@', python_paths['purelib']) + val = val.replace('@PYTHON_PLATLIB@', python.platlib) + val = val.replace('@PYTHON_PURELIB@', python.purelib) p = Path(val) if self.typ == 'python_file': return p |