<div dir="ltr">one other note: on systems with aggressive virus scanning, python startup can ber REALLY slow.<div><br></div><div>_maybe_ zipped packages would help with that. (or maybe not -- I haven't tested)</div><div><br></div><div>-CHB</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 6:41 AM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@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"><div class="gmail_extra"><span class=""><div class="gmail_quote">On 11 April 2016 at 23:30, Ionel Cristian Mărieș <span dir="ltr"><<a href="mailto:contact@ionelmc.ro" target="_blank">contact@ionelmc.ro</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"><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, Apr 11, 2016 at 4:00 PM, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span>you wouldn't typically install<br>
each application in its own directory and add that directory to<br>
$PATH.], so why do the equivalent with sys.path?</span><div><div><img></div></div></div></blockquote></div><br><div style="font-family:trebuchet ms,sans-serif">Funny that Nixos and Redhat's SCLs do exactly that with $PATH other vars:-)<br></div></div></div></blockquote><div><br clear="all"></div></div></span>For SCLs, we don't really expect you to have dozens active at once, though - usually only 1 or 2 for any given process (language runtime + web server).<br><br></div><div class="gmail_extra">In terms of this thread, though, the advice in the setuptools docs is indeed out of date - the downside of making sys.path longer overwhelms the benefit of zipimporter loading content listings into memory, especially in Python 3, which also caches normal directory listings for sys.path entries since the switch to importlib in 3.3 (the caching avoided a slowdown when importing from local disks, and provided a dramatic speed *up* when importing from network file shares).<br><br></div><div class="gmail_extra">Cheers,<br></div><div class="gmail_extra">Nick.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br>-- <br><div>Nick Coghlan | <a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a> | Brisbane, Australia</div>
</div></font></span></div>
<br>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div>