Thanks for the suggestions.&nbsp; The plugin I wrote for finding xpcshell tests worked because I just manually passed it in to nose; see the bottom of this file:<br><br>&nbsp; <a href="http://hg.mozilla.org/labs/weave/index.cgi/file/389d9ff46d61/scripts/runtests.py">http://hg.mozilla.org/labs/weave/index.cgi/file/389d9ff46d61/scripts/runtests.py</a><br>
<br>- Atul<br><br><div class="gmail_quote">On Fri, Jul 11, 2008 at 11:51 AM, Kumar McMillan &lt;<a href="mailto:kumar.mcmillan@gmail.com">kumar.mcmillan@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, Jul 11, 2008 at 11:35 AM, Atul Varma &lt;<a href="mailto:varmaa@gmail.com">varmaa@gmail.com</a>&gt; wrote:<br>
&gt; <a href="http://hg.mozilla.org/labs/weave/index.cgi/file/389d9ff46d61/scripts/getnose.py" target="_blank">http://hg.mozilla.org/labs/weave/index.cgi/file/389d9ff46d61/scripts/getnose.py</a><br>
&gt;<br>
&gt; To use it, one just has to &quot;import getnose&quot; before they &quot;import nose&quot;. &nbsp;If<br>
&gt; nose isn&#39;t already installed system-wide, the nose package is automatically<br>
&gt; downloaded and untarred in the current directory and the proper directory is<br>
&gt; added to sys.path (thereby obviating any need for admin privileges). &nbsp;Thus<br>
&gt; Weave&#39;s testing infrastructure is able to use nose without having to<br>
&gt; explicitly require developers to retrieve it.<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; Would this be of use to anyone? &nbsp;Or was there an easier way for me to<br>
&gt; achieve the same end? &nbsp;I&#39;m just curious.<br>
<br>
</div>Atul, that definitely seems useful. &nbsp;Managing dependencies will always<br>
be tricky, IMO, and bootstrapping always feels awkward. &nbsp;Some similar<br>
ways you could do it would be to create a buildout recipe or use Poach<br>
Eggs.<br>
<br>
Buildout: <a href="http://pypi.python.org/pypi/zc.buildout/" target="_blank">http://pypi.python.org/pypi/zc.buildout/</a><br>
I believe you&#39;d want to make a buildout.cfg something like this<br>
<br>
[buildout]<br>
parts = nose<br>
bin-directory = .<br>
<br>
[nose]<br>
recipe = zc.recipe.egg<br>
eggs = nose<br>
<br>
... then I think you will get the script ./nosetests to run. &nbsp;IIRC<br>
buildout has its own automatic bootstrapping mechanism so that you<br>
don&#39;t have to have buildout or setuptools installed. &nbsp;I think.<br>
<br>
<br>
Poach Eggs -- I haven&#39;t used it myself but if I understand it&#39;s a way<br>
to simply add a list of requirements to a file and from that build the<br>
eggs locally. &nbsp;*However* I don&#39;t know if it does automatic<br>
bootstrapping for the PoachEggs and setuptools installation<br>
themselves.<br>
<a href="http://www.openplans.org/projects/opencore/poacheggs" target="_blank">http://www.openplans.org/projects/opencore/poacheggs</a><br>
<br>
<br>
As for your approach, it&#39;s simple and elegant so that&#39;s a plus. &nbsp;Do<br>
plugins still work like this? &nbsp;I imagine they would work as long as<br>
they were easy_install&#39;d since that activates their entry points. &nbsp;If<br>
you wanted to install local plugins without system wide installation<br>
then I don&#39;t think adding to sys.path will be enough. &nbsp;You&#39;d have to<br>
use one of the above approaches since they hook into the setuptools<br>
framework.<br>
<font color="#888888"><br>
K<br>
</font></blockquote></div><br>