These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
from distutils.core import setup, Extension
|
|
from distutils.sysconfig import get_config_var
|
|
import os
|
|
|
|
dataFiles = ['_cantera%s' % get_config_var('SO')]
|
|
if os.name == 'nt':
|
|
dataFiles.append('clib.dll')
|
|
|
|
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': dataFiles},
|
|
ext_modules=[Extension('_spam', ['src/spam.c'])])
|
|
|
|
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"])
|