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