Fixed a bug with Python Distutils and relative source paths
This commit is contained in:
parent
8d9ecb68ad
commit
4d3814d1cf
2 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ if '@python_package@' == 'full':
|
|||
packages = ["","Cantera","Cantera.OneD",
|
||||
"MixMaster","MixMaster.Units"],
|
||||
package_data = {'Cantera': dataFiles},
|
||||
ext_modules=[Extension('_spam', ['../../src/python/spam.c'])])
|
||||
ext_modules=[Extension('_spam', [@spam_source@])])
|
||||
|
||||
elif '@python_package@' == 'minimal':
|
||||
setup(name="Cantera CTI File Processor",
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ for var in ('VS80COMNTOOLS', 'VS90COMNTOOLS', 'VS100COMNTOOLS'):
|
|||
if var in os.environ:
|
||||
localenv['ENV'][var] = os.environ[var]
|
||||
|
||||
localenv['spam_source'] = repr(File('#src/python/spam.c').abspath)
|
||||
make_setup = localenv.SubstFile('#interfaces/python/setup.py',
|
||||
'#interfaces/python/setup.py.in')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue