19 Apr
2021
19 Apr
'21
14:10
Hi! If I remember correctly, it's not possible to use the %python_version_nodots macro to use a certain build dependency for certain Python versions only, is it? I tried a variant of the snippet here [1] for BuildRequires but that doesn't work. %if %python_version_nodots < 39 BuildRequires: python-importlib_resources %endif Is there any other way to guard BuildRequires against certain Python versions? Or is the python-rpm-macros in SLE-15-SP3 just too old? Adrian
[1] https://en.opensuse.org/openSUSE:Packaging_Python#Conditionals_on_Python_ver...