cantera/interfaces/cython/setup.py.in
2012-09-06 19:56:51 +00:00

33 lines
1.1 KiB
Python

import os
from setuptools import setup, find_packages, Extension
from distutils.sysconfig import get_config_var
from Cython.Distutils import build_ext
dataFiles = ['_cantera%s' % get_config_var('SO')]
if os.name == 'nt':
dataFiles.append('cantera_shared.dll')
else:
dataFiles.append('libcantera_shared.so')
exts = [Extension("cantera._cantera",
["cantera/_cantera.pyx"],
include_dirs=@py_include_dirs@,
language="c++",
libraries=@py_cantera_libs@,
library_dirs=@py_libdirs@,
extra_compile_args=@py_extra_compiler_args@,
extra_link_args=@py_extra_link_args@)]
setup(name="Cantera",
version="@cantera_version@",
description="The Cantera Python Interface",
long_description="""
""",
author="Raymond Speth",
author_email="speth@mit.edu",
url="http://code.google.com/p/cantera",
packages = find_packages(),
cmdclass = {'build_ext': build_ext},
ext_modules = exts,
package_data = {'cantera': dataFiles,
'cantera.data': ['*.xml', '*.cti']})