Skip to content

Commit

Permalink
build: try out nuitka
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Jul 9, 2024
1 parent 8d81e87 commit b98c6f4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions nuitka_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/bash

python -m nuitka \
--assume-yes-for-downloads \
--mingw64 \
--lto=no \
--jobs=2 \
--static-libpython=yes \
--standalone \
--enable-plugin=anti-bloat \
--show-modules \
--show-anti-bloat-changes \
--follow-stdlib \
--follow-imports \
--nofollow-import-to="*.tests" \
--nofollow-import-to="*.distutils" \
--nofollow-import-to="distutils" \
--nofollow-import-to="unittest" \
--nofollow-import-to="pydoc" \
--nofollow-import-to="tkinter" \
--nofollow-import-to="test" \
--prefer-source-code \
--include-package=Xlib \
--include-data-files=umu/umu_version.json=umu_version.json \
umu
3 changes: 2 additions & 1 deletion umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ def main() -> int: # noqa: D103
}
command: list[AnyPath] = []
opts: list[str] = []
root: Path = Path(__file__).resolve(strict=True).parent
umu_bin = sys.argv[0] if "__compiled__" in globals() else __file__
root: Path = Path(umu_bin).resolve(strict=True).parent
args: Namespace | tuple[str, list[str]] = parse_args()

if os.geteuid() == 0:
Expand Down

0 comments on commit b98c6f4

Please sign in to comment.