From 7b81eb6f656cc78dfd5404fe1083db96e16feb3302b59ce758204a05b9400b43 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 26 Apr 2023 20:44:24 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-installer?expand=0&rev=17 --- python-installer.spec | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/python-installer.spec b/python-installer.spec index 0cbaf1d..f5377c0 100644 --- a/python-installer.spec +++ b/python-installer.spec @@ -52,13 +52,8 @@ A library for installing Python wheels. %if !%{with test} %build -# Use defined python if sle15_python_module_pythons, in other case use -# the default python3 module to build - %if %{defined sle15_python_module_pythons} - python3.11 -m flit_core.wheel - %else - python3 -m flit_core.wheel - %endif +export apython3=$(find %_bindir -name 'python3*[0-9]' -print -quit) +$apython3 -m flit_core.wheel %endif