From 91e73befe4bd67b997edf43cbf360ab70655ffe5 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Mon, 6 Jan 2025 12:05:58 +0100 Subject: [PATCH] Avoid DRY violation --- kivy_ios/recipes/hostpython3/__init__.py | 4 ++-- kivy_ios/toolchain.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kivy_ios/recipes/hostpython3/__init__.py b/kivy_ios/recipes/hostpython3/__init__.py index f47ebbb3..9771a6ba 100644 --- a/kivy_ios/recipes/hostpython3/__init__.py +++ b/kivy_ios/recipes/hostpython3/__init__.py @@ -100,7 +100,7 @@ def install(self): self.ctx.dist_dir, "hostpython3", "lib", - "python3.11", + f"python{self.ctx.hostpython_ver}", "site-packages", "setuptools", ), @@ -111,7 +111,7 @@ def install(self): self.ctx.dist_dir, "hostpython3", "lib", - "python3.11", + f"python{self.ctx.hostpython_ver}", "site-packages", "setuptools", ), diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index 1800f3e9..0cbdb06d 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -184,7 +184,7 @@ def get_env(self): "root", "python3", "include", - "python3.11", + f"python{self.ctx.hostpython_ver}", ) ) ]