Richard,
The Redhat yum package works for global settings. Just in the habit of
using Python virtual environments, keeps python packages separate and
easier to track which packages are required in by an application.
Regards
John
On 9/14/15, 3:08 PM, "Richard W.M. Jones" <rjones(a)redhat.com> wrote:
On Mon, Sep 14, 2015 at 09:45:16PM +0000, John McDowall wrote:
> Richard,
>
> I put an #ifdef around the logic in py_guestfs_mount_9p and
> py_guestfs_list_9p, I.e. Left the signatures but the functions just
>return
> a a NULL PyObject. It now builds and installs with pip.
> Thanks for all your help most appreciated.
>
> Is there a better way to do this?, #ifdefs always seem a little hacky.
Actually I was wondering why the python-libguestfs package from RHEL
doesn't work for you. I don't use Python much myself, but is there
some benefit to using PIP?
In answer to your question, yes the #ifdefs are hacky. We need to fix
the bug I mentioned before properly.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
https://urldefense.proofpoint.com/v2/url?u=http-3A__people.redhat.com_-7Er
jones&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDp
fOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=ySvUEe1JrJiYtWMPHeBxoFT3Fy5n6Y7C6VLhA5q
T-oI&s=otrOnAZCkauO1XDBmknezc4ZTBEpL1FJDhvbsqFLfqc&e=
Read my programming and virtualization blog:
https://urldefense.proofpoint.com/v2/url?u=http-3A__rwmj.wordpress.com&am...
wIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDpfOdPQrz1E
D54jEjvAE36A8TVJroVlrOQ&m=ySvUEe1JrJiYtWMPHeBxoFT3Fy5n6Y7C6VLhA5qT-oI&s=n5
pPDk_xnoFvA6LrNUUrV_2BsKpoh6jeAlfxneTB-gw&e=
virt-builder quickly builds VMs from scratch
https://urldefense.proofpoint.com/v2/url?u=http-3A__libguestfs.org_virt-2D
builder.1.html&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ
6VUDaavDpfOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=ySvUEe1JrJiYtWMPHeBxoFT3Fy5n6Y
7C6VLhA5qT-oI&s=2YvdPNHgyitmaZNAbYnIUVrrpAwtsARK4G-hZ4jwNwI&e=