I am used with compiling self-made python extensions under Linux using Cython. On Linux, I use distutils to produce a "myext.so", that I can then simply add to my PYTHONPATH
and get the import myext
python call available.
Now, I am trying to get it working under Windows 7 (using Cython 0.18).
I successfully ran distutils such that I now get a myext.pyd
file. But it seems (http://docs.python.org/2/faq/windows.html#is-a-pyd-file-the-same-as-a-dll) that adding the path to "myext.pyd" is not enough under windows. What should the "myext.py" look like or, in other words, what is the procedure to get my extension available in my Python (2.7) installation.
Note : After having added the directory containing "myext.pyd" to the PYTHONPATH, I still get :
python BdmLsim4.py -i model.xml
Traceback (most recent call last):
File "BdmLsim4.py", line 6, in <module>
import myext
ImportError: DLL load failed: module not found.
Many thanks.