Cantera Config/MountainLion SconsConfig
From charlesreid1
If you've already run scons, and are changing the configuration, run:
rm cantera.conf
before proceeding.
Put the following in a script, make it executable, and run it:
#/bin/sh
scons build \
prefix=$HOME/pkg/cantera/2.0.2 \
python_package=full \
with_html_log_files=yes \
use_sundials=y \
sundials_include=$HOME/pkg/sundials/std/include \
sundials_libdir=$HOME/pkg/sundials/std/lib \
boost_inc_dir=$HOME/pkg/boost/std \
boost_lib_dir=$HOME/pkg/boost/std \
debug=no \
graphvizdir=/usr/local/bin \
&& \
scons install
Errors
DistributionNotFound Error
If you see a DistributionNotFound error:
$ ./build.sh
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/scons", line 4, in <module>
import pkg_resources
pkg_resources.DistributionNotFound: scons==2.3.0
The problem is likely with which scons is on your $PATH. I had issues installing scons with pip and with easy_install, so I installed scons directly from source. However, Python was still trying to pull in the scons binary that easy_isntall/pip had created, so I was getting a problem with the distribution not being found.
The fix was to put the correct scons (corresponding to the version of scons I had built) on my $PATH.