I'm new to Cython, but got it working by following this basic guide from the official docs:
All it says is: "Cython has a way to visualise where interaction with Python objects and Python’s C-API is taking place. For this, pass the annotate=True parameter to cythonize(). It produces a HTML file."
I'm very surprised that I couldn't just Google this one or that no one on stackoverflow has asked this. But I can't figure out how to get it to work. It doesn't show specifically what it wants. So I tried the most obvious syntax (in Setup.py):
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("gpcython.pyx", annotate=True)
)
While this does not throw an error, I do not see any HTML being generated either.
I am on windows using the latest version of Python 3.7 with Cython 0.29.12.
https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
--force
, i.e.python setup.py build_ext --inplace --force
, then html is next to pyx-file. – Canard