diff --git a/.gitignore b/.gitignore index 9483637..e11a364 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ index.html pip-wheel-metadata/ *.pdf *.css +*.pyz diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..65576f4 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Ultra wild west single binary compiling +# https://github.com/linkedin/shiv + +shiv --output-file=distribusi.pyz \ + --site-packages=.venv/lib/python3.7/site-packages/ \ + --entry-point=distribusi.cli.cli_entrypoint \ + --python="/usr/bin/env python3" \ + --compressed \ + --compile-pyc \ + .