-
Notifications
You must be signed in to change notification settings - Fork 1
/
cx_setup.py
57 lines (47 loc) · 2.06 KB
/
cx_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
#Derive Package Paths Dynamically
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')
with open('VERSION') as version_file:
version_var = version_file.read().strip()
# Dependencies are automatically detected, but it might need fine tuning.
#build_exe_options = {"packages": ["os"], "excludes": []}
includes_mod = ["tkinter.filedialog",
'numpy.core._methods',
'numpy.lib.format',
'matplotlib.backends.backend_tkagg',
'seaborn',
'seaborn.cm',
'scipy.sparse.csgraph',
'argparse',
'scipy.sparse.csgraph._validation'
]#,'scipy.spatial.ckdtree'
include_folders_files = ["C:/Python36/DLLs/tcl86t.dll",
"C:/Python36/DLLs/tk86t.dll",
'01_Input/',
'00_Config/',
'00_generateClusters_OnlyEmoji.cmd',
'00_generateClusters_OnlyPhotoLocations.cmd',
'00_generateClusters_OnlyTags.cmd',
("D:/03_EvaVGI/05_Code/Py/standalone_tag_cluster_hdbscan/tagmaps/matplotlibrc","matplotlibrc")
]
packages_mod = ["tkinter", "hdbscan"]
excludes_mod = ["scipy.spatial.cKDTree"]
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
#base = "Console"
#if sys.platform == "win32":
# base = "Win32GUI"
executables = [
Executable('tagmaps/__main__.py', base=base)
]
setup( name = "tagmaps",
version = version_var,
description = "Tag Clustering for Tag Maps",
options = {'build_exe': {'includes': includes_mod, 'include_files': include_folders_files,'packages':packages_mod,'excludes':excludes_mod}},
executables = executables)