[libvirt] [PATCH python 1/7] Allow disabling of python2 RPM build
Pavel Hrdina
phrdina at redhat.com
Fri Jan 12 11:15:19 UTC 2018
On Thu, Jan 11, 2018 at 04:43:33PM +0000, Daniel P. Berrange wrote:
> With Fedora modularity, it is possible to have add-on repos for multiple
> versions of python3. It is thus desirable to be able to build libvirt-python
> in these repos, with only the python3 sub-RPMs enabled.
>
> Thus also helps if future RHEL/Fedora drop python2 entirely from their default
> repos.
Prior to this patch we should also fix the "wrong" usage of
"python_sitearch" on line 26:
# Don't want provides for python shared objects
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
%{?filter_setup}
We should use python{2,3}_sitearch instead since the old python_sitearch
points only to the default version. Currently we will not filter
the *.so files for python3.
Otherwise, the patch itself looks good.
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180112/8cf7dc9e/attachment-0001.sig>
More information about the libvir-list
mailing list