moved ctml_writer.py out of Cantera package
This commit is contained in:
parent
fb2a2d81d9
commit
ded1a8a294
3 changed files with 1606 additions and 24 deletions
|
|
@ -47,6 +47,9 @@ _winbuild: $(SRCS) $(WIN_LIB_DEPS)
|
|||
(@PYTHON_CMD@ setup.py build)
|
||||
echo 'ok' > _winbuild
|
||||
|
||||
minbuild:
|
||||
(@PYTHON_CMD@ setup.py build)
|
||||
|
||||
install:
|
||||
ifeq (@local_python_inst@,1)
|
||||
(@PYTHON_CMD@ setup.py install --prefix=@python_prefix@)
|
||||
|
|
|
|||
1568
Cantera/python/ctml_writer.py
Normal file
1568
Cantera/python/ctml_writer.py
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -2,8 +2,8 @@ import sys
|
|||
try:
|
||||
from distutils.core import setup, Extension
|
||||
except:
|
||||
print 'could not import distutils. Skipping Python interface.'
|
||||
sys.exit(0)
|
||||
print 'could not import distutils. Will try anyway...'
|
||||
#sys.exit(0)
|
||||
|
||||
libs = []
|
||||
platform = sys.platform
|
||||
|
|
@ -23,25 +23,36 @@ else:
|
|||
"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)
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
if @BUILD_PYTHON@ == 2:
|
||||
|
||||
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)
|
||||
],
|
||||
)
|
||||
else:
|
||||
|
||||
setup(name="Cantera CTI File Processor",
|
||||
version="@ctversion@",
|
||||
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"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue