diff options
author | Wojtek Porczyk <woju@invisiblethingslab.com> | 2017-03-17 14:35:53 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2017-04-04 15:28:50 +0100 |
commit | e9850106744e70b890e5fdfec9b1b5fd2c7a6ac5 (patch) | |
tree | 10ff291960cbc72a64330d2dd0b1fb25d0aa034e /libvirt-python.spec.in | |
parent | 72e237f7b9a8c8b353753a7e9c0a6fdbb3d553c5 (diff) | |
download | libvirt-python-e9850106744e70b890e5fdfec9b1b5fd2c7a6ac5.tar.gz |
Add asyncio event loop implementation
This is usable only on python >= 3.4 (or 3.3 with out-of-tree asyncio),
however it should be harmless for anyone with older python versions.
In simplest case, to have the callbacks queued on the default loop:
>>> import libvirtaio
>>> libvirtaio.virEventRegisterAsyncIOImpl()
The function is not present on non-compatible platforms.
Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
Diffstat (limited to 'libvirt-python.spec.in')
-rw-r--r-- | libvirt-python.spec.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in index 3021ebd..5ad0292 100644 --- a/libvirt-python.spec.in +++ b/libvirt-python.spec.in @@ -86,11 +86,13 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info %defattr(-,root,root) %doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/ %{_libdir}/python3*/site-packages/libvirt.py* +%{_libdir}/python3*/site-packages/libvirtaio.py* %{_libdir}/python3*/site-packages/libvirt_qemu.py* %{_libdir}/python3*/site-packages/libvirt_lxc.py* %{_libdir}/python3*/site-packages/__pycache__/libvirt.cpython-*.py* %{_libdir}/python3*/site-packages/__pycache__/libvirt_qemu.cpython-*.py* %{_libdir}/python3*/site-packages/__pycache__/libvirt_lxc.cpython-*.py* +%{_libdir}/python3*/site-packages/__pycache__/libvirtaio.cpython-*.py* %{_libdir}/python3*/site-packages/libvirtmod* %endif |