Test for lean cython with blender.
$ pip install cython
$ python3 -m cProfile -s time main.py
$ sudo apt install build-essential python3-dev
In my Linux Mint 19.3 Tricia:
Download python 3.7.4
cd folder
$ sudo apt install zlib1g-dev libffi-dev libssl-dev
$ sudo apt purge pytho3-pip
$ ./configure --with-ssl
$ make -j 2
$ sudo make install
$ sudo chown $USER:$USER -R $HOME/.cache
Note: in pycharm put existent enviroment: /your/path/Python-3.7.4/Python/
$ cythonize --inplace --annotate archivo.py
$ python3 setup.py build_ext --inplace
In Unix use ".so" files, in windows ".pyd", these files are imported into your normal python code.
You need "MS Windows SDK for Windows 7 and .NET Framework 4", and "Visual Studio Build Tools 2019". then open the Developer Command Pront vor VS 2019 and compile from there. It is not recommended to use MinGW.
$ sudo pip3 install easycython
$ easycython voronoi.pyx