Python Forum

Full Version: Help with building Cython modules.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After a week of pure hell and lot's of help I seem to have Cython and a compiler installed and working in Win 10.
I seem to have pyximport working now.
Setup.py does generate a .c file when I run it in IDLE now.

I have tried many variations of python setup.py build_ext --inplace to build the .so but I just can't get anything out of it.
Seems to be complaining about the directory.
I suck and power shell and I can get back to c: but that's about it. Python folder is buried deep and I don't even know how to get there.
Please god someone tell me there is an easier way to use build then to have to manually type through 15 folders in the CMD every time I want to use it.
I did hear there is something called easycython but I can't find anything in Google.

Hope someone can help. Thanks

UPDATE:
Hmm...I think I just got it working. file called cythonTestFunction.cp36-win32 and one called cythonTestFunction.pyx showed up. The wrapper program works now. I think it's working but I need help understanding the steps and maybe a shortcut to doing the build part. What does each file do etc?

I got it worked out now. Wrote a batch file to make building easier. If anyone needs help getting this running Windows maybe I can help. Cython has reduced by test function from 9.8 seconds to 0.0440 seconds. Amazing...
Hi, i like view your .bat
Thanks
easy cython pypi page is here: https://pypi.org/project/easycython/
and github here: https://github.com/cjrh/easycython
you can install with:
pip install easycython
I haven't used it, so can't vouch for it, but now at least you know how to get it.

FYI: If any package can be installed with pip, you will find it here: https://pypi.org/