21 Feb
2005
21 Feb
'05
12:26 a.m.
[...]
Try just:
setup(name = 'my', ext_modules = [Extension('mymodule', sources = ['mymodule.i'])]
Well, I had also tried this variant, but then distutils generates a mymodule.lib instead of _mymodule.lib and the Microsoft linker complains about not finding the external symbol "initmymodule".
I see. Try changing the order of ext_modules and py_modules, please: setup(name = 'my', ext_modules = [Extension('_mymodule', sources = ['mymodule.i'], py_modules = ['mymodule','my']) - Lars