-
Notifications
You must be signed in to change notification settings - Fork 2
/
_export_c_setup.py
30 lines (22 loc) · 977 Bytes
/
_export_c_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
import os
import sys
currentDirectory = os.path.dirname(os.path.abspath(__file__))
if not os.path.samefile(currentDirectory, os.getcwd()):
print("You are not in the correct directory.")
print("Expected:", currentDirectory)
print("Got: ", os.getcwd())
sys.exit()
if currentDirectory not in sys.path:
sys.path.append(currentDirectory)
addonName = "an_bluefox_extension"
addonDirectory = os.path.join(currentDirectory, addonName)
exportPath = os.path.join(currentDirectory, "{}.zip".format(addonName))
from _setuputils.export import execute_Export
from _setuputils.compilation import execute_Compile
from _setuputils.compile_libraries import execute_CompileLibraries
from _setuputils.setup_info_files import getSetupInfoList
setupInfoList = getSetupInfoList(addonDirectory)
execute_CompileLibraries(setupInfoList, addonDirectory)
execute_Compile(setupInfoList, addonDirectory)
execute_Export(addonDirectory, exportPath, addonName)
print("\nDone.")