[openstack-dev] openstack/requirements and tarball subdirs

Jeremy Stanley fungi at yuggoth.org
Tue Jul 8 14:18:16 UTC 2014


On 2014-07-08 09:09:35 -0400 (-0400), Doug Hellmann wrote:
[...]
> You'll also need to modify cinder's tox.ini to set "sitepackages =
> True" so the virtualenvs created for the unit tests can see the global
> site-packages directory. Nova does the same thing for some of its
> dependencies.

Nova did this for python-libvirt I believe, but now that we finally
have platforms with new-enough libvirt to support the split-out
python-libvirt library on PyPI we can hopefully finally stop doing
this in master at least. I'm a little worried about taking on
sitepackages=True in more projects given the headaches it causes
(conflicts between versions in your virtualenv and system-installed
python modules which happen to be dependencies of the operating
system, for example the issues we ran into with Jinja2 on CentOS 6
last year).

It might be better to work with the python-dbus authors to get a
pip-installable package released to PyPI, so that it can be included
in the tox virtualenv (though for DevStack we'd still want to use
distro packages instead of PyPI, I think).
-- 
Jeremy Stanley



More information about the OpenStack-dev mailing list