From 2b7bcf2b3e131f72fa19e45d76c67501c47e1f24 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 13 Aug 2015 22:22:33 -0400 Subject: [PATCH] [Python] Prevent renaming of Python extension module In Cygwin, some versions of SCons append a 'cyg' prefix to DLL names, which breaks the Python extension module that is supposed to be named just '_cantera.dll'. --- interfaces/cython/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/cython/SConscript b/interfaces/cython/SConscript index 6b5a34a39..0436fa84b 100644 --- a/interfaces/cython/SConscript +++ b/interfaces/cython/SConscript @@ -133,7 +133,7 @@ if localenv['python3_package'] == 'y': obj = py3env.SharedObject('#build/temp-py/_cantera3', 'cantera/_cantera.cpp') ext = py3env.LoadableModule('#build/python3/cantera/_cantera%s' % module_ext, obj, LIBPREFIX='', SHLIBSUFFIX=module_ext, - LIBSUFFIXES=[module_ext]) + SHLIBPREFIX='', LIBSUFFIXES=[module_ext]) py3env['py_extension'] = ext[0].name py3env.SubstFile('setup3.py', 'setup.py.in') @@ -156,7 +156,7 @@ if localenv['python_package'] == 'full': obj = py2env.SharedObject('#build/temp-py/_cantera2', 'cantera/_cantera.cpp') ext = py2env.LoadableModule('#build/python2/cantera/_cantera%s' % module_ext, obj, LIBPREFIX='', SHLIBSUFFIX=module_ext, - LIBSUFFIXES=[module_ext]) + SHLIBPREFIX='', LIBSUFFIXES=[module_ext]) py2env['py_extension'] = ext[0].name py2env.SubstFile('setup2.py', 'setup.py.in') build_cmd = ('cd interfaces/cython &&'