cantera/interfaces/cython/setup.py.in
Ray Speth 2bd25f52b4 Simplified setup.py for new Python module
The removed parts are not necessary since the compiled module no
longer links to the Cantera shared library.
2012-09-06 19:57:13 +00:00

25 lines
902 B
Python

import os
from setuptools import setup, find_packages, Extension
from distutils.sysconfig import get_config_var
from Cython.Distutils import build_ext
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@)]
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.data': ['*.xml', '*.cti']})