Include Sundials in the Cantera Python module when necessary

This commit is contained in:
Ray Speth 2012-02-23 21:25:13 +00:00
parent 9bcc42b758
commit b6376f1e00

View file

@ -39,8 +39,9 @@ if localenv['python_package'] == 'full':
# OS X requires library dependencies to be specified at link time
if localenv['OS'] == 'Darwin':
pylinklibs.append('python%s' % gcv('VERSION'))
if localenv['use_sundials'] == 'y':
pylinklibs.extend(['sundials_cvodes', 'sundials_nvecserial'])
if localenv['use_sundials'] == 'y':
pylinklibs.extend(['sundials_cvodes', 'sundials_nvecserial'])
pymodule = localenv.SharedLibrary('#interfaces/python/Cantera/_cantera',
['pycantera.cpp'],