-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.py
More file actions
92 lines (77 loc) · 1.92 KB
/
package.py
File metadata and controls
92 lines (77 loc) · 1.92 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name = "usd"
version = "20.08"
_data = {
# Allzpark
"label": "USD",
"icon": "{root}/resources/usd.png"
}
requires = [
"python",
"PyOpenGL",
# PySide only
# Use Qt.py to select Qt python binding variants
"Qt.py",
"!PyQt5",
"!PyQt4",
]
variants = [
["platform-*", "python-2.7", "release-1"],
["platform-*", "python-3.7", "release-1"],
["platform-*", "python-2.7", "release-0"],
["platform-*", "python-3.7", "release-0"],
]
build_requires = [
"rezutil-1+",
"cmake-3.2+",
"doxygen",
"graphviz",
"nasm",
"jinja2",
]
dependencies = [
"zlib-1.2.11",
"boost-1.70.0",
"tbb-2017.6",
"glew-2.0.0",
"libpng-1.6.29",
"libjpeg_turbo-1.5.1",
"libtiff-4.0.7",
"ptex-2.1.28",
"hdf5-1.10.0",
"blosc-1.17.0",
"openexr-2.2.0",
"opensubdiv-3.4.3",
"openvdb-6.1.0",
"opencolorio-1.1.0",
"openimageio-2.1.16.0",
"alembic-1.7.12",
"materialx-1.37.1",
]
private_build_requires = [
# "rez", # for building boost
"nuke-11+", # for openimageio
]
build_command = "\n".join([
"python {root}/dependencies/%s.py {install}" % dep
for dep in dependencies
] + [
"python {root}/rezbuild.py {install}",
"cd ." # This will make the build process always success !
])
def pre_build_commands():
import os
build = globals()["build"]
os.environ["PATH"] += ";%s;%s" % (build.install_path + "/bin",
build.install_path + "/lib")
def commands():
env = globals()["env"]
system = globals()["system"]
env.PATH.append("{root}/bin")
env.PATH.append("{root}/plugin/usd")
env.PYTHONPATH.append("{root}/lib/python")
if system.platform == "windows":
# Required additionally on Windows
env.PATH.append("{root}/lib")
elif system.platform == "linux":
env.LD_LIBRARY_PATH.append("{root}/lib")
env.PXR_USD_LOCATION = "{root}"