-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_cx.py
51 lines (47 loc) · 1.34 KB
/
setup_cx.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
from cx_Freeze import Executable, setup
# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
build_exe_options = {
"packages": ["npxcompress"],
"excludes": ["tkinter"],
"include_msvcr": True,
}
company_name = "KavliInstitute"
product_name = "npxcompress"
msi_data = {
"ProgId": [
(
"Prog.Id",
None,
None,
"Compress/decompress large-scale electrophysiological recordings based on Neuropixels",
None,
None,
),
],
}
bdist_msi_options = {
"upgrade_code": "{55101C5B-D716-4A32-9272-2B3D0D958F4F}",
"add_to_path": True,
"all_users": False,
"initial_target_dir": rf"[ProgramFilesFolder]\{company_name}\{product_name}",
"summary_data": {
"author": "Vadim Frolov <[email protected]>",
},
"data": msi_data,
}
base = None
setup(
name="npxompress",
version="0.0.0",
author=company_name,
description="Compress/decompress large-scale electrophysiological recordings based on Neuropixels",
options={
"build": {"build_exe": "dist"}, # output directory
"build_exe": build_exe_options,
"bdist_msi": bdist_msi_options,
},
executables=[
Executable("npxcompress/cli.py", base=base, target_name="npxcompress"),
],
)