pyoxidizer_binary
A single-file Python executable with a Python interpreter embedded, built via PyOxidizer.
To use this target, first create a python_distribution
target with the code you want included in your binary, per https://www.pantsbuild.org/v2.15/docs/python-distributions. Then add this python_distribution
target to the dependencies
field. See the help
for dependencies
for more information.
You may optionally want to set the entry_point
field. For advanced use cases, you can use a custom PyOxidizer config file, rather than what Pants generates, by setting the template
field. You may also want to set [pyoxidizer].args
to a value like ['--release']
.
Backend: pants.backend.experimental.python.packaging.pyoxidizer