mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
import sys
|
|
try:
|
|
from distutils.core import setup, Extension
|
|
except:
|
|
print 'could not import distutils. Skipping Python interface.'
|
|
sys.exit(0)
|
|
|
|
libs = []
|
|
platform = sys.platform
|
|
|
|
if platform == "win32":
|
|
libs = ["clib", "zeroD","oneD","transport",
|
|
"cantera","recipes","ctlapack",
|
|
"ctblas", "ctmath", "cvode", "tpx"]
|
|
else:
|
|
|
|
# The library 'g2c' is needed if the g77 Fortran compiler is
|
|
# used to compile the Fortran-77 procedures in libraries
|
|
# 'recipes', 'ctlapack', 'ctblas', and 'ctmath'. If a different
|
|
# compiler is used, add the appropriate libraries here.
|
|
|
|
libs = ["clib", "zeroD","oneD","transport",
|
|
"cantera","recipes","ctlapack",
|
|
"ctblas", "ctmath", "cvode", "tpx", "stdc++", "g2c", "m"]
|
|
|
|
|
|
setup(name="Cantera",
|
|
version="@ctversion@",
|
|
description="The Cantera Python Interface",
|
|
long_description="""
|
|
""",
|
|
author="Prof. D. G. Goodwin, Caltech",
|
|
author_email="dgoodwin@caltech.edu",
|
|
url="http://www.cantera.org",
|
|
package_dir = {'MixMaster':'../../apps/MixMaster'},
|
|
packages = ["","Cantera","Cantera.OneD",
|
|
"MixMaster","MixMaster.Units"],
|
|
ext_modules=[
|
|
Extension("Cantera._cantera",
|
|
["src/pycantera.cpp", "src/writelog.cpp"],
|
|
include_dirs=["../../build/include",
|
|
"src", "../clib/src"],
|
|
library_dirs = ["@buildlib@"], libraries = libs)
|
|
],
|
|
)
|
|
|
|
|