Closed sdementen closed 1 year ago
Hi @sdementen,
I am curious what the purpose of this PR is, if there are no dependencies to include, I would imagine that Python's own zipapp
module would be sufficient, no?
hi @lorencarvalho, it allows to deliver a .pyz that runs a specific python interpreter (via the shebang line) and run some preamble code
@sdementen I see, that's a bit divergent from the purpose of shiv
, a problem that might be better solved in a deployment tool.
Currently shiv does not support to provide empty pip_args or no site_packages in the CLI. This PR fixes that and also adapt the create_archive to handle an empty /site-packages/ folder. It also ensures that the pip_args is a list of str. If pip_args is just a str, it will be splitted (today, if pip_args=="pip", it will install the "p" and the "i" package)