Provide a sub-command that searches for .pyz
files
#221
Replies: 5 comments 6 replies
-
This would also make for an interesting alternative to pipx, as projects could distribute (or be made into) a |
Beta Was this translation helpful? Give feedback.
-
An alternative name is |
Beta Was this translation helpful? Give feedback.
-
Another option is an entirely separate |
Beta Was this translation helpful? Give feedback.
-
Although I commend the brainstorming here, maybe there's a better experience to be had. Windows handles this situation by having .pyz in the PATHEXT and having .pyz associated with the executable I'd really like for there to be an easy way for a developer to provide a command to a user on any platform, without the need for a user to explicitly invoke a launcher or interpreter. |
Beta Was this translation helpful? Give feedback.
-
PEP 723 makes a |
Beta Was this translation helpful? Give feedback.
-
https://docs.python.org/3/library/zipapp.html provides a way to create a zip file that Python can directly execute. Unfortunately you have to point Python at the resulting
.pyz
file to execute it. Providing a generic command that can searchPATH
for such.pyz
files and use them appropriately may be useful.Idea sparked by https://discuss.python.org/t/pip-plans-to-introduce-an-alternative-zipapp-deployment-method/17431/25 .
This might not be too critical, though, with an appropriate shebang line on the
.pyz
file.Beta Was this translation helpful? Give feedback.
All reactions