[CentOS-devel] How to compile modular SRPMs for CentOS 8?

Wed Apr 13 10:13:19 UTC 2022
Leon Fauster <leonfauster at googlemail.com>

Am 13.04.22 um 05:08 schrieb Nico Kadel-Garcia:
> I admit to disliking "modularity" for RPMs, especially because there
> are various modularity RPMs I'd like to compile for python 3.9
> compatibility. ansible-core requires at least python 3.8, but there
> are a stack of dependencies for ansible-core which have never been
> provided for python 3.9, such as python39-sphinx and python39-pytest..
> 
> Can anyone offer me suggestions or guidance on how to build those? The
> SRPMs for python3-pytest and others seem to support modularity, but
> I'd like to use "mock" locally to test them out.

Correct me if I understand it wrongly. The requirement is not building a
module but against a enabled module?

IIRC in mock config:

config_opts['module_enable'] = ['python39:3.9']

and then build the rpms normally.

--
Leon