diff options
author | Martin Kletzander <mkletzan@redhat.com> | 2017-05-15 15:11:58 +0200 |
---|---|---|
committer | Martin Kletzander <mkletzan@redhat.com> | 2017-05-15 17:58:25 +0200 |
commit | 7695aa5a3bb86b768ac65ae46600cb020fc03f0f (patch) | |
tree | 3b91ec9301be8e422a76ca42d24a03fac144d518 /libvirt-python.spec.in | |
parent | 16e0892841c87e95cfa8d109482fba34e2fdea39 (diff) | |
download | libvirt-python-7695aa5a3bb86b768ac65ae46600cb020fc03f0f.tar.gz |
spec: Install egg-info with rpm package
This was being done due to now deprecated policy and that file should
be installed so that pip can recognize that the packages is already
installed in the system.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r-- | libvirt-python.spec.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index 5ad0292..fc30564 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -65,7 +65,6 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %if %{with_python3} %{__python3} setup.py install --skip-build --root=%{buildroot} %endif -rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info %check %{__python} setup.py test @@ -80,6 +79,7 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info %{_libdir}/python2*/site-packages/libvirt_qemu.py* %{_libdir}/python2*/site-packages/libvirt_lxc.py* %{_libdir}/python2*/site-packages/libvirtmod* +%{_libdir}/python2*/site-packages/*egg-info %if %{with_python3} %files -n libvirt-python3 @@ -94,6 +94,7 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info %{_libdir}/python3*/site-packages/__pycache__/libvirt_lxc.cpython-*.py* %{_libdir}/python3*/site-packages/__pycache__/libvirtaio.cpython-*.py* %{_libdir}/python3*/site-packages/libvirtmod* +%{_libdir}/python3*/site-packages/*egg-info %endif %changelog |