forked from CoolProp/GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_EXE.py
61 lines (51 loc) · 1.79 KB
/
create_EXE.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
58
59
60
61
# -*- coding: utf-8 -*-
"""
Created on Mon 02 of Feb 10:42:17 2015
Build script zum erstellen einer lauffähigen .exe
@author: mayers
"""
from cx_Freeze import setup, Executable
import matplotlib
import site
import sys
import gettext
site_packages_dir=site.getsitepackages()
if sys.platform == "win32":
base = "Win32GUI"
scipy_ufuncs=site_packages_dir[-1]+'\\scipy\\special\\_ufuncs.pyd'
#includefiles = ["CoolPropLogo.ico","msvcp100.dll","msvcr100.dll"]
includefiles = ["CoolPropLogo.ico"]
excludefiles = []
includes = []
build_exe_options = { 'packages': ['scipy'],
"includes":["matplotlib.backends.backend_tkagg"],
"include_files": [(scipy_ufuncs,
'_ufuncs.pyd'),
"CoolPropLogo.ico",
"simplecycle.png",
"cycle2.png",
"cpgui.ini",
"locale",
(matplotlib.get_data_path(),
"mpl-data")]
}
cpgui = Executable(
script = "cpgui.py",
initScript = None,
base = base,
targetName = "CPGUI.exe",
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = "CoolPropLogo.ico"
)
setup(
name = "CoolProp GUI",
version = "1.0",
author = 'Reiner Mayers',
description = "GUI for Coolprop",
options={"build_exe": build_exe_options},
#options = {"build_exe": {"includes":includes,'include_files':includefiles}},
executables = [cpgui]
)