Overview

Request 1143743 accepted

No description set

Benjamin Greiner's avatar

@anag

The new canonical definition in prjconf would be: (Removes python39)

See https://github.com/openSUSE/python-rpm-macros/blob/501440e7602d62c23ff8523bc1eb91e5fa8dd17b/default-prjconf and https://github.com/openSUSE/python-rpm-macros/pull/169

# Macros:
## PYTHON MACROS BEGIN
# order of %pythons is important: The last flavor overrides any operation on conflicting files and definitions during expansions,
# making it the "default" in many cases --> keep the primary python3 provider at the end.
%pythons %{?!skip_python3:%{?!skip_python310:python310} %{?!skip_python310:python312} %{?!skip_python311:python311}}
%add_python() %{expand:%%define pythons %1 %pythons}

%_without_python2 1

# This method for generating python_modules gets too deep to expand for rpm at about 5 python flavors.
# Hence, python_module_iter is replaced by python_module_lua in macros.lua.
# However, OBS cannot expand lua, but has a much higher expansion depth, so this works fine for the server side resolver.
%python_module_iter(a:) %{expand:%%define python %{-a*}} ( %python-%args ) %{expand:%%{?!python_module_iter_%1:%%{python_module_iter -a%*}}%%{?python_module_iter_%1}}
# pseudo-undefine for obs: reset for the next expansion within the next call of python_module
%python_module_iter_STOP %global python %%%%python
%python_module() %{?!python_module_lua:%{expand:%%define args %{**}} %{expand:%%{python_module_iter -a %{pythons} STOP}}}%{?python_module_lua:%python_module_lua %{**}}
# define our current primary Python interpreter
%primary_python python311
## PYTHON MACROS END
# :Macros

Request History
Matej Cepl's avatar

mcepl created request


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar accepted review


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:C as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:C"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:C"


Ana Guerrero's avatar

anag+factory accepted review

Staging Project openSUSE:Factory:Staging:C got accepted.


Ana Guerrero's avatar

anag+factory approved review

Staging Project openSUSE:Factory:Staging:C got accepted.


Ana Guerrero's avatar

anag+factory accepted request

Staging Project openSUSE:Factory:Staging:C got accepted.

openSUSE Build Service is sponsored by