Advertisement
AceScottie

setup.py

Jan 28th, 2020
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.05 KB | None | 0 0
  1. import sys, os
  2. from cx_Freeze import setup, Executable
  3. python_path = "C:/Python37-32/"
  4. os.environ['TCL_LIBRARY'] = python_path+'tcl/tcl8.6'
  5. os.environ['TK_LIBRARY'] = python_path+'tcl/tk8.6'
  6.  
  7. includefiles = ["credentials.json", "assets/", "icon.ico", python_path+"DLLs/tcl86t.dll", python_path+"DLLs/tk86t.dll"]
  8. packages = ["os", "sys", "tkinter", "urllib", "httplib2", "traceback", "threading", "hashlib", "binascii", "base64", "string", "webbrowser", "time", "subprocess", "datetime", "win32api", "win32con"]
  9. excludes = []
  10. includes = ["babel", "crypto", "socks", "google", "pymysql", "pandas", "tkcalendar", "matplotlib", "numpy"]
  11.  
  12.  
  13. base = None
  14. if sys.platform == 'win32':
  15.     base = 'Win32GUI'
  16.  
  17. executables = [
  18.     Executable(
  19.     script='caseload.py',
  20.     base='Win32GUI',
  21.     icon="icon.ico"
  22.     )
  23. ]
  24.  
  25. setup(name='Paitent System',
  26.       version='1.0.0.45',
  27.       description='Patient System.',
  28.       options = {'build_exe': {'includes':includes,'excludes':excludes,'packages':packages,'include_files':includefiles}},
  29.       executables=executables
  30.       )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement