forked from mlt/schwinn810
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-win32.py
31 lines (26 loc) · 1.35 KB
/
setup-win32.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
import sys
from cx_Freeze import setup, Executable
import requests
# C:\Python27\python setup.py build
# 7z a -xr!*.py* build\exe.win32-2.7\library.zip C:\Python27\Lib\site-packages\pytz
sys.path.append("schwinn810/web")
# Dependencies are automatically detected, but it might need fine tuning.
#"build_exe": "schwinn810_win32",
# "include-in-shared-zip": ["C:\\Python27\\lib\\site-packages\\pytz\\zoneinfo", "site-packages\\pytz\\zoneinfo"], \
# "zip_includes": [("C:/Python27/Lib/site-packages/pytz/zoneinfo/", "pytz/zoneinfo/")], \
build_exe_options = { "optimize": 2,
"include_files": [(requests.certs.where(), 'cacert.pem')]} #, "create-shared-zip": True}
#"path": [sys.path, "garmin"], "includes": ["UploadGarmin"],
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
# if sys.platform == "win32":
# base = "Win32GUI"
setup( name = "schwinn810",
version = "0.1",
description = "Tools for Schwinn 810 GPS sport watch",
options = {"build_exe": build_exe_options},
data_files = [(".", ["schwinn810.cmd", "babelize.cmd"] )],
executables = [Executable("schwinn810/download.py", base=base), \
Executable("schwinn810/csv2tcx.py", base=base), \
Executable("schwinn810/web/tcx2web.py", base=base)])