(this may not be a py-tutor question, but well) I have a small C-extension module, consisting of 3 files (ndcombine_module.c, combine.c & combine.h). I can build the extension find 'in place' using distutils, but when creating a distribution (with setup.py sdist), the combine.h header file seemingly gets lost and I cannot build it anywhere else. The extension part in setup.py looks like:
ndcombine_sources = [os.path.join('src', 'ext_lib', 'combine', p) for p in \ ('ndcombine_module.c', 'combine.c')] ndcombine_ext = Extension('ndcombine', sources=ndcombine_sources, depends=[os.path.join('src', 'ext_lib', 'combine', 'combine.h')], include_dirs = [numpyincludepath]) where I have tried to use 'depends', which seems to fail. Below that, there is of course setup(..., ext_modules=[ndcombine_ext], ...) I feel I'm missing something, but I cannot think of what. Suggestions most welcome. Thanks, Evert (The numpyincludepath points to the NumPy header files; that would be another question, how to that propely, other than going through the numpy configuration options, but I'll leave that.). _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor