Re: [libvirt-users] about python-libvirt

2018-05-10 Thread Andrea Bolognani
[re-adding libvirt-users; please don't take replies off-list]

On Thu, 2018-05-10 at 17:32 +0800, lizhuoyao wrote:
> Thanks!
> 
> But I'm not clear that what the language binding means? 
> What the relationship between they? Is that the code from
> https://libvirt.org/sources/ can be replaced completely by
> the code from https://libvirt.org/sources/python? 

Language bindings are the means through which libvirt, which is
implemented in C, can be used from non-C languages such as Python.
It's basically a bunch of glue code that allows Python code to
call into C code.

In order to use libvirt from Python, you need to have *both*
libvirt itself *and* the Python bindings installed on the system:
libvirt-python doesn't replace libvirt, and in fact can't work at
all unless the C library is available as well.

-- 
Andrea Bolognani / Red Hat / Virtualization

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: [libvirt-users] about python-libvirt

2018-05-10 Thread Andrea Bolognani
On Thu, 2018-05-10 at 10:42 +0800, lizhuoyao wrote:
> hi boys:
>   the libvirt code in ftp://libvirt.org does get the function
>   of python-libvirt? Or the python-libvirt is another code ?

libvirt-python is developed and released separately from libvirt
itself, just like other language bindings: on

  https://libvirt.org/downloads.html

you can find links for both the C library and modules built on
top of it, including the Python bindings.

-- 
Andrea Bolognani / Red Hat / Virtualization

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] about python-libvirt

2018-05-10 Thread Daniel P . Berrangé
On Thu, May 10, 2018 at 10:42:40AM +0800, lizhuoyao wrote:
> hi boys:
>   the libvirt code in ftp://libvirt.org does get the function
> of python-libvirt? Or the python-libvirt is another code ?

The python code is separate - you can find links to all
module downloads at:

   https://libvirt.org/downloads.html#releases

The python is also on pypi, so you can just "pip install libvirt-python"
if preferred.

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

[libvirt-users] about python-libvirt

2018-05-09 Thread lizhuoyao
hi boys:
  the libvirt code in ftp://libvirt.org does get the function of 
python-libvirt? Or the python-libvirt is another code ?


--
Have a good day






___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users