Salome HOME
add salome_system to the list of dependencies for native builds...
[tools/sat_salome.git] / products / env_scripts / vtk.py
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3
4 def set_env(env, prereq_dir, version):
5     env.set('VTK_ROOT_DIR', prereq_dir) # update for cmake
6     env.set('VTKHOME', prereq_dir)
7     root = env.get('VTKHOME')
8     pyver = 'python' + env.get('PYTHON_VERSION')
9
10     env.prepend('PATH', os.path.join(root, 'bin'))
11     env.prepend('LD_LIBRARY_PATH', os.path.join(root, 'lib'))
12     env.prepend('PYTHONPATH', os.path.join(root, 'lib', pyver, 'site-packages'))
13     #http://computer-programming-forum.com/57-tcl/1dfddc136afccb94.htm
14     #Tcl treats the contents of that variable as a list. Be happy, for you can now use drive letters on windows.
15     env.prepend('TCLLIBPATH', os.path.join(root, 'lib', 'vtk-5.0', 'tcl'), sep=" ")
16
17 def set_nativ_env(env):
18     pass