diff options
Diffstat (limited to 'mesonbuild/dependencies/python.py')
| -rw-r--r-- | mesonbuild/dependencies/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py index db4944bab..883a29ad9 100644 --- a/mesonbuild/dependencies/python.py +++ b/mesonbuild/dependencies/python.py @@ -218,6 +218,8 @@ class _PythonDependencyBase(_Base): if self.static: libpath = Path('libs') / f'libpython{vernum}.a' else: + if limited_api: + vernum = vernum[0] comp = self.get_compiler() if comp.id == "gcc": if imp_lower == 'pypy' and verdot == '3.8': @@ -228,8 +230,6 @@ class _PythonDependencyBase(_Base): else: libpath = Path(f'python{vernum}.dll') else: - if limited_api: - vernum = vernum[0] if self.is_freethreaded: libpath = Path('libs') / f'python{vernum}t.lib' else: |
