Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit 48d5568

Browse files
committed
Include excludes option
Add excludes py2exe option to remove Tkinter from shipped version. Also, make options assignment more clear.
1 parent 8f61709 commit 48d5568

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

setup-win.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111

1212
from circuitscape import __version__, __author__, __email__
1313

14-
# INCLUDES =[]
15-
INCLUDES =['scipy.sparse.csgraph._validation','pyamg.aggregation.__init__','pyamg.__config__',
16-
'pyamg.amg_core','pyamg.aggregation']
17-
PACKAGES = ['PythonCard', 'wx', 'wxversion', 'numpy', 'scipy', 'pyamg', "scipy.io.matlab.streams"]
18-
19-
DATA_FILES = ['circuitscape/cs_logo.jpg', 'circuitscape/gui_rsrc.py', 'cs_logo.ico']
20-
21-
OPTIONS = {'includes': PACKAGES}
2214

15+
DATA_FILES = ['circuitscape/cs_logo.jpg', 'circuitscape/gui_rsrc.py',
16+
'cs_logo.ico']
17+
OPTIONS = {'includes': ['PythonCard', 'wx', 'wxversion', 'numpy', 'scipy',
18+
'pyamg', 'scipy.io.matlab.streams'],
19+
'excludes': ['Tkconstants', 'Tkinter']}
2320

2421
# Compile cs_run.py first to ensure that dependencies needed for cs_gui also included.
2522
setup(

0 commit comments

Comments
 (0)