cantera/Cantera/python/setup.py.in
Ray Speth 79b7686e63 More robust installation of the Python package with SCons
SCons now checks for an array package (numpy by default) and builds
the full Python module if it finds it, otherwise it builds the minimal
package.
2011-12-14 03:53:50 +00:00

34 lines
1.1 KiB
Python

import sys
import string
from distutils.core import setup, Extension
platform = sys.platform
# values:
# 0 do nothing
# 1 install only ctml_writer.py
# 2 install full package
if '@python_package@' == 'full':
setup(name="Cantera",
version="@cantera_version@",
description="The Cantera Python Interface",
long_description="""
""",
author="Prof. D. G. Goodwin, Caltech",
author_email="dgoodwin@caltech.edu",
url="http://code.google.com/p/cantera",
package_dir = {'MixMaster':'../../apps/MixMaster'},
packages = ["","Cantera","Cantera.OneD",
"MixMaster","MixMaster.Units"],
package_data = {'Cantera': ['_cantera.so']})
elif '@python_package@' == 'minimal':
setup(name="Cantera CTI File Processor",
version="@cantera_version@",
description="Converts .cti files to CTML",
long_description="""
""",
author="Prof. D. G. Goodwin, Caltech",
author_email="dgoodwin@caltech.edu",
url="http://www.cantera.org",
py_modules = ["ctml_writer"])