Skip to content

Commit

Permalink
File to create the exe
Browse files Browse the repository at this point in the history
  • Loading branch information
Latseen committed Aug 5, 2022
1 parent 8e98d00 commit 4a9d87d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions KelPy/exe-setup/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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
packages = ["onnxruntime","cv2","numpy","torch","PIL", "torchvision", "rasterio"]
includefiles = ['rasterio.libs', 'graphics']

# base="Win32GUI" should be used only for Windows GUI app
base = None
#if sys.platform == "win32":
# base = "Win32GUI"

setup(
name="KelPy",
version="0.1",
description="KelPy",
author='Chet Russell',
author_email='chet.barnaclefoods@gmail.com',
options={"build_exe": {'packages':packages, 'include_files':includefiles}},
executables=[Executable("main.py", base=base, icon='graphics/bull.ico')],
)

0 comments on commit 4a9d87d

Please sign in to comment.