-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
31 lines (27 loc) · 890 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
28
29
30
31
# Build with `python setup.py build_exe`
import os
from cx_Freeze import setup, Executable
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ["TCL_LIBRARY"] = os.path.join(PYTHON_INSTALL_DIR, "tcl", "tcl8.6")
os.environ["TK_LIBRARY"] = os.path.join(PYTHON_INSTALL_DIR, "tcl", "tk8.6")
options = {
"build_exe": {
"include_files": [
os.path.join("blender/"),
os.path.join("icons/"),
os.path.join(PYTHON_INSTALL_DIR, "DLLs", "tk86t.dll"),
os.path.join(PYTHON_INSTALL_DIR, "DLLs", "tcl86t.dll"),
],
"build_exe": "build",
},
}
setup(
options=options,
name="HDR Brackets",
version="0.1",
description="",
buildOptions=dict(packages=["exifread"], excludes=[]),
executables=[
Executable(script="hdr_brackets.py", base=None, icon="icons/icon.ico")
],
)