Basics
basic usage of `cython`
before read this document you can check code here
Setup
install cython
in your local. I used python@3.9.10
type like below inside of setup.py
. every time we build cython
script, we use this.
setup.py
in helloworld.pyx
write down like below. nothing special:
helloworld.pyx
in main.py
we call built result:
Build
after finished setup, let's compile cython
script. command like below:
after build cython
you can see helloworld.c
file and /build
. and other stuffs. in this time, we do not cover about that.
Run
let's call cython
.
References
Last updated