cantera/interfaces/python/setup.py.in
Ray Speth 34cffd0135 Fixed issues generating version-dependent installer for Windows Python module
Passing the '--target-version' option to bdist_msi will generate an
installer that requires the right version of Python without distutils
needing to be able to find a working compiler.
2012-04-19 16:45:15 +00:00

31 lines
1.1 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('cantera_shared.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",
packages = ["","Cantera","Cantera.OneD",
"MixMaster","MixMaster.Units"],
package_data = {'Cantera': dataFiles})
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://code.google.com/p/cantera",
py_modules = ["ctml_writer"])