On 05/26/2016 08:24 AM, Tomas Orsava wrote:
Hi,
those are very good questions to which you should be able to find answers on the Python RPM Porting Guide [0]. You are right that this should be better covered in the packaging guidelines, sadly the process of changing them is rather problematic so no one yet had the time to update them.
Thanks Tomas, I was aware of this document as well. However I believe both documents contain the same mistake.
Here is the problem:
Only the python3-XXX package installs the (Py3) script. Unless the python2-XXX package requires the script neither the script nor the Py3 modules/packages required by the (Py3) script will be installed when you install either the python-XXX or python2-XXX package (assuming the virtual provides of python-XXX points to python2-XXX as is currently the case).
I think the python2-XXX package in the examples is missing something like this:
Requires: %{_bindir}/sample-exec
Make sense?