Skip to content

Extend check for python_module to also support prefixed_python_module#338

Open
marcosbc wants to merge 1 commit intorpm-software-management:masterfrom
marcosbc:extend-python-modules-check
Open

Extend check for python_module to also support prefixed_python_module#338
marcosbc wants to merge 1 commit intorpm-software-management:masterfrom
marcosbc:extend-python-modules-check

Conversation

@marcosbc
Copy link
Copy Markdown

@marcosbc marcosbc commented Apr 28, 2026

Relates #321

We are using a variant of python_module which we have named prefixed_python_module, given that we have the need of including a custom prefix in all our Python packages. The related contribution to python-rpm-macros can be found here.

However, upon executing spec-cleaner on a recipe with a conditional BuildRequires which uses this macro, it will suggest a breaking change. For instance:

-BuildRequires:  %{prefixed_python_module tomli = 2.0.2 if %python-base < 3.11}
+BuildRequires:  %{prefixed_python_module tomli = 2.0.2 if %{python}-base < 3.11}

This has already been resolved for python_module via #322, and we would like to propose for spec-cleaner also support this new prefixed_python_module macro that we are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant