-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.py
30 lines (27 loc) · 955 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
"""
Package.py to install MRRS on the grid
can use rez env meshroom-develop mrrs -- meshroom
package and repo in /s/apps/users/multiview/mrrs/hogm/mrrs
"""
name='mrrs'
version='0.0'
requires=[
'python',
'Pillow-8.4.0',
'pyopencv-4.7.0',
'pyoiio-2.4.13',
'trimesh',
'click',
'matplotlib'
]
def commands():
"""
Setups mrrs path and meshroom node path env variable
"""
env.PATH.append('/s/apps/users/hogm/miniconda/bin')#add conda to path FIXME: harcoded with hogm
source("/s/apps/users/hogm/miniconda/etc/profile.d/conda.sh")
#env.MESHROOM_CACHE='/s/prods/mvg/_source_global/users/hogm/tmp/'#make cache for conda FIXME: harcoded with hogm
env.PYTHONPATH.append('{root}/MeshroomResearch')
env.MESHROOM_NODES_PATH.append('{root}/MeshroomResearch/mrrs/nodes')
for p in ['benchmark', 'colmap']:
env.MESHROOM_PIPELINE_TEMPLATES_PATH.append('{root}/MeshroomResearch/pipelines/' + p)