forked from genzj/pybingwallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 965 Bytes
/
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
from cx_Freeze import setup, Executable
import sys
sys.path.append('src')
from main import REV
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = {'packages': ['urllib', 'PIL'],
'includes': ['win32.win32gui', 'log', 'record',
'webutil', 'setter', 'bingwallpaper'],
'excludes': ['tkinter'],
'compressed':1,
'include_files': [('src/winsetter.py','')],
'bin_includes': ['pywintypes33.dll'],
'optimize': 2,
}
executables = [
Executable('./src/main.py', base='Win32GUI', targetName='BingWallpaper.exe'),
Executable('./src/main.py', base='Console', targetName='BingWallpaper-cli.exe')
]
setup(name='PyBingWallpaper.exe',
version = REV,
description = 'Bing.com Wallpaper Downloader',
options = {'build_exe': buildOptions},
executables = executables)