[Python-ideas] Add a begins like wrapper to argparse

Paul Moore p.f.moore at gmail.com
Sat Mar 26 10:33:20 EDT 2016


On 26 March 2016 at 11:21, Yann Kaiser <kaiser.yann at gmail.com> wrote:
> I feel like this should be corrected instead. While I'm not advocating
> script developers auto-install packages, it'd be nice to help "I just want
> to ship a single 50-line file" people make better use of dependencies.

You may want to look at zipapp (and in general the support that's been
in Python since 2.6) for zipped applications. For pure-Python
dependencies you can put them in a directory alongside your
application script (renamed as __main__.py), add the dependency
directory to sys.path, and zip it all up and have a standalone file
runnable with Python.

Paul


More information about the Python-ideas mailing list