From 60275a475ee5bf855dfd349f8aae3f0f4cc75df0 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 3 May 2020 18:11:20 +0200 Subject: [PATCH] Add sketchy build script --- .gitignore | 1 + build.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 build.sh 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 \ + .