[Python-Dev] Request for Pronouncement: PEP 441 - Improving Python ZIP Application Support
Ethan Furman
ethan at stoneleaf.us
Tue Feb 24 22:09:01 CET 2015
On 02/24/2015 01:00 PM, Ethan Furman wrote:
> On 02/24/2015 12:51 PM, Paul Moore wrote:
>> $ python -m zipapp foo.pyz --info
>> Interpreter: /usr/bin/python
>> $ python -m zipapp bar.pyz --info
>> Interpreter: <none>
Another way to support this is with subcommands. Have the default [implicit] command be to create the zip app, and then
add any subcommands we need:
python -m zipapp [create] foo #creates a foo.pyz from the foo directory
python -m zipapp info foo.pyz # prints out shebang for foo.pyz
python -m zipapp info --all foo.pyz # prints out shebang and directory structure and files and ....
This easily leaves the door open to add new commands in the future if any are still needed, and makes the current
commands easy and simple to use.
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150224/52584022/attachment.sig>
More information about the Python-Dev
mailing list