As a follow up to Daniel Berrange's libvirt-python creation patchset [1],
I've added the following to allow the repo to build against multiple
versions of libvirt. I've successfully built it against libvirt 0.10.2.8
from Fedora 18 but will test further against some other distros as well.
If you just want something clone-able you can get the full repo from:
git clone
https://github.com/cardoe/libvirt-python.git
And since its github you can see the web page at:
https://github.com/cardoe/libvirt-python
The patchset is still a work in progress for the following:
* commit message clean up
* tests against additional versions
I'm really curious to see how far back people want to support things.
[1]
http://www.redhat.com/archives/libvir-list/2013-November/msg00416.html
Doug Goldstein (18):
Bump version number to current 1.1.5
Add missing URL attribute to setup.py
Add maintainer/maintainer_email to the libvirt list
Add libvirt version check macro from libvirt upstream
Break generator.py to be called per module
Create array of modules to be built
Don't build LXC module when building less than 1.0.2
virTypedParams* API appeared in 1.0.2
virNodeGetCPUMap API not added until 1.0.0
virDomainMigrate3 and virDomainMigrateToURI3 not added until 1.1.0
Wrap new domain create APIs added in 1.1.1
virConnectGetCPUModelNames() did not appear until 1.1.3
virDomainGetJobStats() was added in 1.0.3
virDomainMigrateGetCompressionCache() was added in 1.0.3
VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK added in 1.0.0
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED was added in 1.1.1
Add missing break to switch-case block
Bring some virTypedParams* API from libvirt
generator.py | 24 ++++++++++++------------
libvirt-override.c | 40 ++++++++++++++++++++++++++++++++++++++--
libvirt-utils.c | 43 +++++++++++++++++++++++++++++++++++++++++++
libvirt-utils.h | 16 ++++++++++++++++
setup.py | 53 +++++++++++++++++++++++++++++++++++++++++------------
5 files changed, 150 insertions(+), 26 deletions(-)
--
1.8.3.2