Kategoriarkiv: Scons

Scons build system: http://www.scons.org

Cantera installation

Download cantera from http://code.google.com/p/cantera

module load scons/2.3.1  # build scons
module load python/2.7.6  # build python
scons build prefix=/opt/cantera/2.0-python-2.7.6
scons test
scons install

module file /etc/modulefiles/cantera/2.0-python-2.7.6

#%Module1.0####################################################################
##
## Discretizer AB modulefile
##
##
## Add directory to the path
prepend-path PATH /opt/cantera/2.0-python-2.7.6/bin
prepend-path PYTHONPATH /opt/cantera/2.0-python-2.7.6/lib/python2.7/site-packages

module load python/2.7.6

Module install of Scons build system used by Cantera

module load python/2.7.6
python setup.py build
python setup.py install –prefix /opt/scons/2.3.1 –standalone-lib

Create a module file /etc/modulefiles/scons/2.3.1
#%Module1.0##########################################
##
##  Discretizer AB modulefile
##
##
proc ModulesHelp { } {
puts stderr ”\tAdd environment.”
}

## Create a whatis file.
module-whatis   ”Add program links, aliases and paths”

## Add directory to the path
prepend-path    PATH    /opt/scons/2.3.1/bin

prepend-path          PYTHON_PATH  /opt/scons/2.3.1/lib
prepend-path          PYTHONPATH   /opt/scons/2.3.1/lib