Jason - Thanks for your reply. I have followed that post and have a similar setup.py file that is now able to use either the pyx or the c file.
I have a another question related to this; is it also possible to include the compiled cython modules (pyd on Windows) in a python package? I tried to create a "dumb binary", which appears to work ok, but when I upload it to PyPi it says that my file is an invalid distribution file. That is, I created a "dumb binary" on Windows using distutils via:
python setup.py bdist
which creates a zip file with the pyd file in it ok, but when I try to upload it to PyPi it says that my zip file is an invalid distribution file. Looking at the other packages on PyPi that have cython extension modules, I found that almost all of these only supply the source, and not the compiled extension module. Do you know if what I am trying to do is possible, or if this is just a PyPi error?
Note: I don't want to create a windows installer, as this is a plug-in to another program that doesn't get installed in the default location. I just need the user to copy the directory containing my package to another directory.
Thanks again
Mike