Salome HOME
Add config files and some code update for compilation of SALOME-7.8.0
[tools/sat.git] / data / env_scripts / distribute.py
1 #!/usr/bin/env python
2 #-*- coding:utf-8 -*-
3
4 import os.path
5 import platform
6
7 def set_env(env, prereq_dir, version):
8     env.set('DISTRIBUTE_ROOT_DIR', env.get('PYTHON_ROOT_DIR'))
9
10     if platform.system() == "Windows" :
11         env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib', 'site-packages'))
12     else:
13         env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
14         pyver = 'python' + env.get('PYTHON_VERSION')
15         env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
16         env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin'))
17     pass
18
19 def set_nativ_env(env):
20     pass