-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcxf_setup.py
More file actions
65 lines (53 loc) · 2.06 KB
/
cxf_setup.py
File metadata and controls
65 lines (53 loc) · 2.06 KB
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
62
63
64
65
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup for cx_Freeze"""
# Python 3 compatibility
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
from cx_Freeze import setup, Executable
from technical_indicators import (NAME, VERSION, DESC, LONG_DESC, LICENSE, URL,
AUTHOR, EMAIL, KEYWORDS, CLASSIFIERS, SCRIPT,
DATA_FILES_CXF)
TARGET_NAME = NAME + '.exe'
base = None
# GUI applications require a different base on Windows
if sys.platform == 'win32':
base = 'Win32GUI'
##if 'bdist_msi' in sys.argv:
## sys.argv += ['--install-script', 'install.py']
##bdist_msi_options = {
## 'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (AUTHOR, NAME),
## #'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}',
## #'add_to_path': False,
## }
build_exe_options = dict(compressed=True,
#excludes=["macpath", "PyQt4"],
#includes=['atexit', 'PySide.QtNetwork'],
include_files=DATA_FILES_CXF,
# append any extra module by extending the list below
# - "contributed_modules+["lxml"]"
#packages=contributed_modules
)
setup(name=NAME,
version=VERSION,
description=DESC,
long_description=LONG_DESC,
license=LICENSE,
url=URL,
author=AUTHOR,
author_email=EMAIL,
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
executables=[Executable(script=SCRIPT,
base=base,
compress=True,
#icon="app_name.ico",
targetName=TARGET_NAME,
#copyDependentFiles=True
)],
options=dict(build_exe=build_exe_options),
##options=dict(bdist_msi=bdist_msi_options,
## build_exe=build_exe_options),
##scripts=['install.py']
)