Re: [Python-Dev] Request for Pronouncement: PEP 441 - Improving Python ZIP Application Support

2015年2月24日 13:11:20 -0800

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~

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to