I have developed a python script and want to put it in a RPM package. The only problem is that this script uses ovirtsdk4 module, which is not one of the builtin python modules. That being said, I would have to install this module within the RPM package. I can think of two ways to approach this:
1 - Using pip3 in the %post section.
2 - Putting the python3-ovirt-engine-sdk4 in the "Requires: package " section.
However, first way does not seem quite reliable and the second doesn't seem to work properly since this package is not available on the CentOS-XXX repositories. (It belong to the ovirt repo).
Can you think of a better way to approach this or am I missing anything?
Many thanks.