<br><br><div class="gmail_quote">On Wed, Oct 26, 2011 at 6:21 AM, Andrea Crotti <span dir="ltr"><<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@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 class="im">On 10/25/2011 09:59 PM, PJ Eby wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If you use the "-m" option to easy_install, the easy-install.pth won't be changed (or even created, if it doesn't exist). Instead, the application scripts will simply add the needed eggs to their path at runtime.<br>
<br>
This is the most flexible approach; the only downside to it is if you just start a Python interpreter, none of the eggs will be on sys.path unless you explicitly pkg_resources.require() them. But for stable app deployment, or even app development (using "setup.py develop" or "setup.py test") it works rather well.<br>
<br>
</blockquote>
<br></div>
Thanks a lot, that might be a nice solution.<br>
Reading the doc I would have never guessed it since "-m" stands for multi-version...<br>
<br>
Anyway the other problem is that our applications are actually Envisage applications (which have plugin<br>
discovery at run-time) which complicates things a little bit.<br>
I'll try to make a trivial example and see if it might work...<br>
<br>
However, I still need a pypi-server running on localhost to discover all the eggs I might need to require, is that correct?</blockquote><div><br></div><div>Why would you need that?</div><div><br></div><div>As long as the eggs are present in a sys.path directory, the normal pkg_resources machinery will find them.</div>
<div><br></div><div>If you mean you want to be able to test installation and deployment, or you are continually rebuilding your install directory for some other reason, then once again you don't need a PyPI server - just put all the eggs in a directory somewhere and use the --find-links (-f) option to easy_install to specify that directory name. It will then copy them from there.</div>
<div><br></div></div>