Creation of Binary with PyInstaller and Removal of Cx_Freeze

This commit is contained in:
2022-02-24 03:22:20 +00:00
parent 8cf9188c6d
commit f4e892cf34
3 changed files with 11 additions and 34 deletions

View File

@@ -1,17 +1,9 @@
import sys
from cx_Freeze import setup, Executable
import PyInstaller.__main__
# 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'
name = "diceplayer"
setup(
name = name,
version = "0.1",
executables = [Executable("diceplayer/__main__.py", target_name=name)]
)
PyInstaller.__main__.run([
'diceplayer/__main__.py',
'--onefile',
'-n{}'.format(name)
])