Our Python 3 modules have historically used the bundled setup.py-file as a means of building and installing when creating packages for cenbuild. This method has been deprecated [1], and as a consequence of this, newer versions often do not come bundled with a setup.py. [1] https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ We therefore need to find some alternative way to build and install.
In bug 8432 I looked at one alternative to setup.py, the modules "installer" and "flit_core". See bug 8432 comment 12.
I looked for inspiration in how RHEL packages python modules, and it's a bit more complicated than using the modules mentioned above. It looks like they are using flit_core, but only in a bootstrapping context, as a means of building Pip and some additional dependencies. And then for all other packages, they are using Pip to build. Installing is done via rpm macros. See also: https://src.fedoraproject.org/rpms/pyproject-rpm-macros https://src.fedoraproject.org/rpms/python-pip https://src.fedoraproject.org/rpms/python-wheel https://src.fedoraproject.org/rpms/python-flit-core