Python installer now requires correct Python version

This commit is contained in:
Ray Speth 2012-01-03 23:08:32 +00:00
parent 82bc960575
commit 11f277b71b
2 changed files with 16 additions and 1 deletions

View file

@ -18,7 +18,9 @@ if '@python_package@' == 'full':
package_dir = {'MixMaster':'../../apps/MixMaster'},
packages = ["","Cantera","Cantera.OneD",
"MixMaster","MixMaster.Units"],
package_data = {'Cantera': dataFiles})
package_data = {'Cantera': dataFiles},
ext_modules=[Extension('_spam', ['src/spam.c'])])
elif '@python_package@' == 'minimal':
setup(name="Cantera CTI File Processor",
version="@cantera_version@",

13
Cantera/python/src/spam.c Normal file
View file

@ -0,0 +1,13 @@
/*
* A trivial Python extension module introduced to force distutils to
* generate installation packages requiring a specific Python version.
*/
#include <Python.h>
PyMODINIT_FUNC
init_spam(void)
{
Py_InitModule3("_spam", NULL,
"Spam, spam, spam, eggs, and spam.");
}