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

Leave a Reply

Your email address will not be published. Required fields are marked *