June 2017
Beginner to intermediate
274 pages
6h 49m
English
So let's say we've written a somewhat useful Cython class; now, how do we make it available to Python code? Well, we have to compile it.
First of all, this means we need to have a compiler. The documentation on cython.org has a tutorial entry and appendix on this process, and I suggest you refer to them if there's not already a compiler on your system. If you have a compiler, installing Cython is just a matter of asking pip to grab it for us:
python3.5 -m pip install Cython
The installation can be a little slow because it needs to do some compiling during the installation; just be patient until it finishes.
Once Cython is installed, we need to create a setup.py file describing how to build our extension, ...
Read now
Unlock full access