File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11""" File used by cx_freeze to package python application. """
22import sys
3+ import os
34from cx_Freeze import setup , Executable
45
56additional_mods = ['numpy.core._methods' , 'numpy.lib.format' ]
89base = None
910if sys .platform == "win32" :
1011 base = "Win32GUI"
12+ # building on Windows: copy tcl and tk to the build
13+ PYTHON_INSTALL_DIR = os .path .dirname (os .path .dirname (os .__file__ ))
14+ os .environ ['TCL_LIBRARY' ] = os .path .join (PYTHON_INSTALL_DIR , 'tcl' , 'tcl8.6' )
15+ os .environ ['TK_LIBRARY' ] = os .path .join (PYTHON_INSTALL_DIR , 'tcl' , 'tk8.6' )
16+ include_files .extend ([
17+ os .path .join (PYTHON_INSTALL_DIR , 'DLLs' , 'tk86t.dll' ),
18+ os .path .join (PYTHON_INSTALL_DIR , 'DLLs' , 'tcl86t.dll' ),
19+ ])
20+
1121
1222setup (
1323 name = "Digitaizer" ,
You can’t perform that action at this time.
0 commit comments