Public bug reported:

On precise. Package version:

ii  python-libvirt                         0.9.8-2ubuntu17.20
libvirt Python bindings


Unlike trusty which has egg-info:

/usr/lib/python-2.7/dist-packages/libvirt_python-1.2.2.egg-info

No such file exists with python-libvirt on precise.

This is important as any programs that are packaged so they can be used
by pypi will fail as they will try to use new > 1.0 package versions to
download as they will be unable to detect the local installed package
from the distro:

Here is the output during bootstrap for a program that depends on
libvirt-python without the egg file on precise:

    Searching for libvirt-python
    Reading http://pypi.python.org/simple/libvirt-python/
    Best match: libvirt-python 1.2.9
    Downloading 
https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.2.9.tar.gz#md5=970da28cfdc1c6532c96101b22f94ec4
    Processing libvirt-python-1.2.9.tar.gz
    Running libvirt-python-1.2.9/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-gfyjD8/libvirt-python-1.2.9/egg-dist-tmp-l_L3cW
    Package libvirt was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libvirt.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libvirt' found
    Package libvirt was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libvirt.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libvirt' found
    /usr/bin/pkg-config --atleast-version=1.0.2 libvirt
    file build/libvirt.py (for module libvirt) not found
    file build/libvirt_qemu.py (for module libvirt_qemu) not found
    file build/libvirt.py (for module libvirt) not found
    file build/libvirt_qemu.py (for module libvirt_qemu) not found
    file build/libvirt.py (for module libvirt) not found
    file build/libvirt_qemu.py (for module libvirt_qemu) not found
    libvirt-override.c:21:29: fatal error: libvirt/libvirt.h: No such file or 
directory
    compilation terminated.
    error: Setup script exited with error: command 'gcc' failed with exit 
status 1


After manually creating the egg-info file which is a very simple file:

    $ cat /usr/lib/python2.7/dist-packages/libvirt_python-0.9.8.egg-info
    Metadata-Version: 1.0
    Name: libvirt-python
    Version: 0.9.8
    Summary: The libvirt virtualization API
    Home-page: http://www.libvirt.org
    Author: Libvirt Maintainers
    Author-email: libvir-l...@redhat.com
    License: UNKNOWN
    Description: UNKNOWN
    Platform: UNKNOWN


Install goes ok:

    Using /usr/lib/python2.7/dist-packages
    Searching for libvirt-python==0.9.8
    Best match: libvirt-python 0.9.8
    libvirt-python 0.9.8 is already the active version in easy-install.pth


This seems like an easy enough fix that it should be added to precise.

Can we get this updated on precise?

If someone doesn't want to spend the time doing a patch I will gladly
build a new package and submit a patch.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1379585

Title:
  python-libvirt lacks egg-info on precise

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1379585/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to