<div dir="ltr"><div><div><div>Yeah. Not moving to zc.buildout for anything. I believe it will be a better option to just write by-hand scripts that get installed that just do:<br><br></div>from nova.rootwrap import cmd<br>
<br></div>return cmd.main(sys.argv)<br><br></div>or something. Basically, a tiny boiler-plate script that does the same thing as a console_scripts entry point thing without loading the module in question via pkg_resources.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 3:10 PM, Joe Gordon <span dir="ltr"><<a href="mailto:joe.gordon0@gmail.com" target="_blank">joe.gordon0@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 1:42 PM, PJ Eby <span dir="ltr"><<a href="mailto:pje@telecommunity.com" target="_blank">pje@telecommunity.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Fri, Jul 19, 2013 at 2:09 PM, Joe Gordon <<a href="mailto:joe.gordon0@gmail.com" target="_blank">joe.gordon0@gmail.com</a>> wrote:<br>



> When I try importing pkg_resources in our development environment it is very<br>
> slow:<br>
<br>
</div>Use zc.buildout to install the application you're invoking, and then<br>
it won't need to import pkg_resources.  (Unless the actual app uses<br>
it.)<br>
</blockquote></div><br></div><div class="gmail_extra">It looks like zc.buildout is not an option as we are already heavily invested in using  pip and virtualenv.</div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>