<p><br>
On Mar 31, 2013 1:09 PM, "Philippe Ombredanne" <<a href="mailto:pombredanne@nexb.com">pombredanne@nexb.com</a>> wrote:<br>
><br>
> On Sat, Mar 30, 2013 at 8:22 PM, Daniel Holth <<a href="mailto:dholth@gmail.com">dholth@gmail.com</a>> wrote:<br>
> > Python ZIP Application Support -<br>
> > <a href="https://docs.google.com/document/d/1MKXgPzhWD5wIUpoSQX7dxmqgTZVO6l9iZZis8dnri78/edit?usp=sharing">https://docs.google.com/document/d/1MKXgPzhWD5wIUpoSQX7dxmqgTZVO6l9iZZis8dnri78/edit?usp=sharing</a><br>

> > PEP: 4XX<br>
> > Title: Improving Python ZIP Application Support<br>
> So I guess that this already-available-yet-hidden-or-little-known<br>
> feature we had since Python 2.6 will be getting a little light.<br>
><br>
> Let me ask a few silly questions:<br>
><br>
> Does this means that any zip with a __main__.py is de-facto already executable?<br>
> What about a wheel with a __main__ ? or an egg?<br>
> Or a source archive where the __main__ calls setup.py install or<br>
> buildout bootstrap?<br>
> Is this something to promote?<br>
> How is this overlapping with other packaging approaches? or possibly<br>
> replacing them all?</p>
<p>Yes regardless of the extension, yes, yes, not really, doesn't overlap much.</p>
<p>A __main__ at the root of a wheel or egg would be a problem since it would wind up in site packages, shadowing other mains. Wheel itself uses a __main__ in a sub path of the archive. Python app.zip/subpath - that works too.</p>

<p>Generally if you can have an installer you don't want the zip application strategy. It is best for medium complexity scripts or pure python applications where the user just wants to use the software and not build on top of it.</p>

<p>We don't want packages to self-install except in special cases. It doesn't leave enough control to the end user.</p>
<p>> --<br>
> Philippe Ombredanne<br>
><br>
> +1 650 799 0949 | pombredanne@nexB.com<br>
> DejaCode Enterprise at <a href="http://www.dejacode.com">http://www.dejacode.com</a><br>
> nexB Inc. at <a href="http://www.nexb.com">http://www.nexb.com</a><br>
</p>