-
Notifications
You must be signed in to change notification settings - Fork 0
/
setupWidgetPC.py
29 lines (23 loc) · 902 Bytes
/
setupWidgetPC.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
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
build_options = {'packages': [], 'excludes': [], 'include_files': ['Resources/', 'Images/'],
'build_exe': 'buildPCWidget/'}
for dbmodule in ['dbhash', 'gdbm', 'dbm', 'dumbdbm']:
try:
__import__(dbmodule)
except ImportError:
pass
else:
# If we found the module, ensure it's copied to the build directory.
build_options['packages'].append(dbmodule)
import sys
base = 'Win32GUI' if sys.platform == 'win32' else None
executables = [
Executable('AutoBookmarker.py', base=base, target_name='AutobookmarkerPCWidget', icon='Resources/logo.ico')
]
setup(name='Autobookmark',
version='1.1',
description='Bookmarks correspondence widget',
options={'build_exe': build_options},
executables=executables)