26 Mar 2016 26 Mar '16
On 26 March 2016 at 11:21, Yann Kaiser email@example.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.