Creation of Binary with cx_Freeze

This commit is contained in:
2022-02-21 13:31:17 +00:00
parent 5efe49607d
commit 8cf9188c6d
6 changed files with 389 additions and 4 deletions

17
setup.py Normal file
View File

@@ -0,0 +1,17 @@
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
build_exe_options = {"packages": ["os","setproctitle","nomkl","numpy"],
"bin_includes": ["/usr/bin/python3"],
"excludes": ["tkinter"],
"optimize": 0}
name = "diceplayer"
setup(
name = name,
version = "0.1",
executables = [Executable("diceplayer/__main__.py", target_name=name)]
)