diff --git a/Cantera/python/Makefile.in b/Cantera/python/Makefile.in index f1ab656cf..a62168546 100755 --- a/Cantera/python/Makefile.in +++ b/Cantera/python/Makefile.in @@ -30,14 +30,14 @@ all: _build _build: $(SRCS) $(LIB_DEPS) touch src/pycantera.cpp - @PYTHON_CMD@ setup.py build + (@PYTHON_CMD@ setup.py build) echo 'ok' > _build install: ifeq (@local_inst@,1) - @PYTHON_CMD@ setup.py install --prefix=@prefix@ + (@PYTHON_CMD@ setup.py install --prefix=@prefix@) else - @PYTHON_CMD@ setup.py install + (@PYTHON_CMD@ setup.py install) endif clean: diff --git a/Cantera/python/setup.py.in b/Cantera/python/setup.py.in index 4af7a2846..0cfdbdd2f 100644 --- a/Cantera/python/setup.py.in +++ b/Cantera/python/setup.py.in @@ -23,22 +23,25 @@ else: # f.write('date = '+`time.time()`) # f.close() -setup(name="Cantera", - version="1.4", - 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","MixMaster","MixMaster.Units"], - ext_modules=[ - Extension("Cantera._cantera", - ["src/pycantera.cpp"], - include_dirs=["../../build/include", - "src", "../clib/src"], - library_dirs = ["@buildlib@"], libraries = libs) - ], - ) +try: + setup(name="Cantera", + version="1.4", + 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","MixMaster","MixMaster.Units"], + ext_modules=[ + Extension("Cantera._cantera", + ["src/pycantera.cpp"], + include_dirs=["../../build/include", + "src", "../clib/src"], + library_dirs = ["@buildlib@"], libraries = libs) + ], + ) +except: + print 'setup.py failed'