Description of problem:
12:39 < danpb> rwmjones: you need to split the python bindings off into their own tar.gz and upload it to pypi as we did with
We would have to build a separate python-libguestfs tarball
which contains just the python bindings, and upload it here:
This should allow people to use 'pip install', and to install
python-libguestfs in a virtualenv.
Currently we are blocked on a licensing problem with the
In the fairly near future you should be able to install
python-libguestfs in a virtualenv using pip, using:
pip install http://libguestfs.org/download/python/guestfs-1.XX.YY.tar.gz
Wondering if there are news on this?
Other than not being able to require guestfs in a setup_requires(as it must be declared as a dependency_link, and pip disables 'process_dependencies_links' by default), there are two other problems:
1. You must pin down the version in your requirements.txt, so you can't use any version comparison operators. This might be resolved by making http://libguestfs.org/download/python compatible as PyPI index, then one could install guestfs with:
pip install -e http://libguestfs.org/download/python guestfs
and use the version operators if needed, (i.e. guestfs == 1.36.1 etc)
2. There is no https, and pip warns about it(for now..)
Still waiting for PyPi to change their license. As you note we are
making python packages available, but TBH there's no real reason to
use them over using the ordinary distro packages.
I just went and checked https://pypi.python.org/tos and it seems better than I remember - has it been updated sufficiently to get libguestfs uploaded now?
Actually, python binding is broken for Python3 according to #1627964 . GObject Introspection works fine and is available on PyPI. Just `pip install pygobject` and open the right .typelib file and you're good to go.
(In reply to Richard W.M. Jones from comment #4)
It is actually useful if using virtual environments. It also makes it easier to integrate with existing solutions (testing etc.) when developing.
Would it be possible to consider this for libnbd as well in case you reconsider it for guestfs?
As discussed on IRC the new terms are acceptable.