[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'.
This commit is contained in:
parent
7bcbbaafd9
commit
2b7bcf2b3e
1 changed files with 2 additions and 2 deletions
|
|
@ -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 &&'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue