[Libguestfs] [PATCH] v2v: -o rhv-upload: decouple name of nbdkit python plugin

Richard W.M. Jones rjones at redhat.com
Mon Jan 7 20:08:05 UTC 2019


On Mon, Jan 07, 2019 at 04:41:17PM +0100, Pino Toscano wrote:
> One option I see is to export, as part of the nbdkit Python module
> interface, the equivalent of sys.version_info: this way, the scripts
> can detect which python version is the plugin linked with:

nbdkit >= 1.8 exports the Python version in ‘--dump-plugin’ output:

$ nbdkit python --dump-plugin
...
python_version=2.7.15

And where it's available, the PEP-384 ABI version:

$ nbdkit python3 --dump-plugin
...
python_version=3.7.2
python_pep_384_abi_version=3

I will try to see if we can parse this easily ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list