<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 9:38 AM, Douglas Mendizábal <span dir="ltr"><<a href="mailto:douglas.mendizabal@rackspace.com" target="_blank">douglas.mendizabal@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<br>
Hi openstack-dev,<br>
<br>
I was wondering what the correct way of handling optional dependencies<br>
is? I'm specifically talking about libraries that are only required<br>
for a specific driver for example, so they're not technically a hard<br>
requirement and the project is expected to function without them when<br>
using a driver that does not require the lib.<br>
<br></blockquote><div><br></div><div>We've got some in keystone, so for example the packages for ldap won't get installed unless it's requested. One of the reasons we chose this one specifically is that the python ldap package requires a C library.<br><br></div><div>We set up the different extra package groups in setup.cfg [extras]:<br></div><div><br>[1] <a href="http://git.openstack.org/cgit/openstack/keystone/tree/setup.cfg?h=stable/liberty#n24">http://git.openstack.org/cgit/openstack/keystone/tree/setup.cfg?h=stable/liberty#n24</a><br><br></div><div>See pbr docs: <a href="http://docs.openstack.org/developer/pbr/#extra-requirements">http://docs.openstack.org/developer/pbr/#extra-requirements</a><br></div><div><br></div><div>Here's the tox.ini line so that they're all installed for unit tests: <a href="http://git.openstack.org/cgit/openstack/keystone/tree/tox.ini?h=stable/liberty#n10">http://git.openstack.org/cgit/openstack/keystone/tree/tox.ini?h=stable/liberty#n10</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I read through the README in openstack/requirements [1] but I didn't<br>
see anything about it.<br>
<br>
<br>
Thanks,<br>
Douglas Mendizábal<br>
<br>
[1]<br>
<a href="https://git.openstack.org/cgit/openstack/requirements/tree/README.rst" rel="noreferrer" target="_blank">https://git.openstack.org/cgit/openstack/requirements/tree/README.rst</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Comment: GPGTools - <a href="https://gpgtools.org" rel="noreferrer" target="_blank">https://gpgtools.org</a><br>
<br>
iQIcBAEBCgAGBQJWCqJlAAoJEB7Z2EQgmLX72D8P/RROP9qT7DRY1jDnbK0Aj/TZ<br>
lYujurHS70nXCj/Pw6uqsq41TttmwMdAx85yXwoLv/XBASaFYZ6eT6i0scfHBKAu<br>
z5f0IomaJMQDGJ27By/amcE5eMiST5sEW/OCwHyZxdM8zgo3mzX1jIslmFEyPJ0z<br>
wSah5DoZZh3J0RfQuBg8MOQgJVZo74KiNRou1uKE82cbVXJzVKjlfn+r7yO9TUtx<br>
9hB/77a8sDFBWI4nXluTP+Dfpy6NSW1kqwwUoDtsZACtrhTDNCDWxUUIjfyBlIKT<br>
LdY+oVrhqWSUI/WwCop4+Aim64obaAq5yWPR6fjTlcQ3+iCYbBzzgP/9VOm/+0Nr<br>
AGzVbIW7ah2yEDhM0yTymaay8+G1mc+jxhvwAtTxJVIJLcJXdC3XK6b00OFkO2Kt<br>
0dkjx/i8/riP56sb62P2a3heS3gOFqzqzwlh9SD8Omvhot3NkOr2e1QR7Cvjh1le<br>
W5U/61vGKxmtv+iIaFXd86CRO46+4UiD1V+T0lKz083J9XuC49nkhyfuMP3ev6lc<br>
/qD6uOnbJfyVWKRdf2PkTEe9C8YsXlxEWZ72GFC+u1jvL5K/NATUkLLWmGuv/JH+<br>
tPyAOPISKHh44mhJqM/K37NvJO/TloOhz0a2fW2FV8kOX1V5wVAZiQBSEWtCAI8u<br>
29up4yIgvi13ZkrRb94n<br>
=fj9z<br>
-----END PGP SIGNATURE-----<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>