Skip to content

Commit

Permalink
freeze updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnfarrell committed Nov 3, 2018
1 parent b30ad4e commit 5ff4c95
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions freeze.py
@@ -1,32 +1,35 @@
import sys, os
from cx_Freeze import setup, Executable
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))

sys.path.append('pandastable')

#currently requires changing line 548 of hooks.py to make scipy work
#see https://bitbucket.org/anthony_tuininga/cx_freeze/issues/43

includes = ["pandastable"]#,"scipy.integrate.vode","scipy.integrate.lsoda","scipy.linalg"]
includes = ["pandastable"]
includefiles = ["pandastable/dataexplore.gif","pandastable/datasets",
"pandastable/plugins"]
"pandastable/plugins",
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'),
os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll')
]

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os","numpy","matplotlib","pandas",
"scipy","seaborn","IPython",
"statsmodels","pandastable"],
"excludes": [],
#"scipy","seaborn","IPython","statsmodels",
"pandastable"],
"excludes": ['scipy','seaborn','statsmodels'],
"namespace_packages": ['mpl_toolkits'],
"include_msvcr": True,
"includes": includes,
"include_files": includefiles}

base = None
if sys.platform == "win32":
#base = None
if sys.platform == "win32":
base = "Win32GUI"

executables = [Executable("main.py", base=base,
copyDependentFiles = True,
#copyDependentFiles = True,
targetName='DataExplore.exe',
shortcutName="DataExplore",
shortcutDir="DesktopFolder",
Expand Down

0 comments on commit 5ff4c95

Please sign in to comment.