Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from cx_Freeze import setup, Executable
- import sys
- import os.path
- PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
- os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
- os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
- base = None
- if sys.platform == 'win32':
- base = None
- executables = [Executable("main.py", base=base)]
- include_files = [(os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), os.path.join('lib', 'tk86t.dll')),
- (os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'), os.path.join('lib', 'tcl86t.dll'))]
- packages = []
- options = {
- 'build_exe': {
- 'packages':packages,
- 'include_files': include_files
- }
- }
- setup(
- name = "",
- options = options,
- version = "0.1",
- description = '<any description>',
- executables = executables
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement