Merge branch 'develop' into feature/OP-2065_Validate-third-party-before-build

This commit is contained in:
iLLiCiTiT 2022-01-14 17:59:33 +01:00
commit 8a947e708e
221 changed files with 14931 additions and 1669 deletions

View file

@ -70,8 +70,13 @@ with open(openpype_root / "openpype" / "version.py") as fp:
version_match = re.search(r"(\d+\.\d+.\d+).*", version["__version__"])
__version__ = version_match.group(1)
low_platform_name = platform.system().lower()
IS_WINDOWS = low_platform_name == "windows"
IS_LINUX = low_platform_name == "linux"
IS_MACOS = low_platform_name == "darwin"
base = None
if sys.platform == "win32":
if IS_WINDOWS:
base = "Win32GUI"
# -----------------------------------------------------------------------
@ -100,7 +105,8 @@ install_requires = [
"filecmp",
"dns",
# Python defaults (cx_Freeze skip them by default)
"dbm"
"dbm",
"sqlite3"
]
includes = []
@ -123,7 +129,7 @@ include_files = [
"README.md"
]
if sys.platform == "win32":
if IS_WINDOWS:
install_requires.extend([
# `pywin32` packages
"win32ctypes",
@ -155,6 +161,15 @@ executables = [
Executable("start.py", base=None,
target_name="openpype_console", icon=icon_path.as_posix())
]
if IS_LINUX:
executables.append(
Executable(
"app_launcher.py",
base=None,
target_name="app_launcher",
icon=icon_path.as_posix()
)
)
setup(
name="OpenPype",