-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
51 lines (40 loc) · 1012 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
"""
Documentation:
"""
# ---------------------------------
# Import Libraries
import os
import sys
from cx_Freeze import setup, Executable
from pathlib import Path
DJED_ROOT = Path(os.getenv("DJED_ROOT"))
sysPaths = [DJED_ROOT.as_posix(), DJED_ROOT.joinpath('src').as_posix()]
for sysPath in sysPaths:
if sysPath not in sys.path:
sys.path.append(sysPath)
from version import version
# ---------------------------------
# Variables
base = None
if sys.platform == "win32":
base = "Win32GUI"
executables = [
Executable("start.py", base=base, targetName="Djed",
icon=f"{DJED_ROOT.as_posix()}/src/utils/resources/icons/djed.ico")
]
include_files = [
]
build_options = {
"include_files": include_files,
"packages": []
}
# ---------------------------------
# Start Here
setup(
name="Djed",
version=version,
description="Djed tools for 3d asset management",
options={"build_exe": build_options},
executables=executables
)