[Bug 1379585] Re: python-libvirt lacks egg-info on precise

2015-02-10 Thread houkouonchi
Well it was downburst which is a tool I maintain but the problem is that
if you have a program that will pull from pypi for dependencies (and you
have libvirt-python) listed as a dependency, (like in this case) then it
won't be able to detect you already have the python bindings installed
from a system package but instead it will try to download the newest
libvirt-python from pypi.

This is problematic for multiple reasons. Since you are using a version
of libvirt that is maintained by your distribution then its probably
better to just use the same version of python bindings of your installed
version of libvirt (IE python-libvirt) rather than try to use bleeding
edge from pypi (which likely will fail to build anyway against your old
version of libvirt).

I am not sure why you wouldn't want the egg info file installed so
things like pypi can detect you already have a version installed. Trusty
has the egg-info  file and this is not an issue on trusty (just
precise).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1379585] [NEW] python-libvirt lacks egg-info on precise

2014-10-09 Thread houkouonchi
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


[Bug 1379585] [NEW] python-libvirt lacks egg-info on precise

2014-10-09 Thread houkouonchi
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
Bugs, which is subscribed to 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-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs