-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.py
37 lines (27 loc) · 942 Bytes
/
package.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
# pylint: skip-file
name = "silex_maya"
version = "0.1.0"
authors = ["ArtFx TD gang"]
description = """
Set of python module and maya config to integrate maya in the silex pipeline
Part of the Silex ecosystem
"""
vcs = "git"
build_command = "python {root}/script/build.py {install}"
def commands():
"""
Set the environment variables for silex_maya
"""
env.SILEX_ACTION_CONFIG.prepend("{root}/silex_maya/config")
env.PYTHONPATH.append("{root}")
env.PYTHONPATH.append("{root}/startup")
env.XBMLANGPATH.append("{root}/startup/icons")
parser_module = ".".join(["silex_maya", "cli", "parser"])
alias("silex", f"mayapy -m {parser_module}")
@late()
def requires():
major = str(this.version.major)
silex_requirement = ["silex_client"]
if major in ["dev", "beta", "prod"]:
silex_requirement = [f"silex_client-{major}"]
return ["maya", "python-3.7"] + silex_requirement