mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
60 lines
1.2 KiB
Python
60 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""Setup info for building Pype 3.0."""
|
|
import sys
|
|
import os
|
|
from cx_Freeze import setup, Executable
|
|
|
|
version = {}
|
|
with open(os.path.join("pype", "version.py")) as fp:
|
|
exec(fp.read(), version)
|
|
__version__ = version['__version__']
|
|
|
|
|
|
install_requires = [
|
|
"appdirs",
|
|
"cx_Freeze",
|
|
"clique",
|
|
"jsonschema",
|
|
"OpenTimelineIO",
|
|
"pathlib2",
|
|
"PIL",
|
|
"pymongo",
|
|
"Qt",
|
|
"speedcopy"
|
|
]
|
|
|
|
base = None
|
|
if sys.platform == "win32":
|
|
base = "Win32GUI"
|
|
|
|
# Build options for cx_Freeze. Manually add/exclude packages and binaries
|
|
buildOptions = dict(
|
|
packages=install_requires,
|
|
includes=[
|
|
'pype',
|
|
'repos/acre/acre',
|
|
'repos/avalon-core/avalon',
|
|
'repos/pyblish-base/pyblish',
|
|
'repos/maya-look-assigner/mayalookassigner'
|
|
],
|
|
excludes=[],
|
|
bin_includes=[],
|
|
include_files=[
|
|
"schema",
|
|
"setup",
|
|
"vendor",
|
|
"LICENSE",
|
|
"README.md",
|
|
"pype/version.py"]
|
|
)
|
|
|
|
|
|
executables = [Executable("pype.py", base=None, targetName="pype")]
|
|
|
|
setup(
|
|
name="pype",
|
|
version=__version__,
|
|
description="Ultimate pipeline",
|
|
options=dict(build_exe=buildOptions),
|
|
executables=executables
|
|
)
|