I am building a Cython extension and recently modified my setup.py. Now the build appears successful, but in the end I cannot import my module (ImportError), and I have no clue why.
I see a .o in build/temp.linux-..., and a .so in build/lib.linux-...
My question is: how can I diagnostic a build ?
What exactly is supposed to be created when I do "setup.py build_ext [--inplace]", then "setup.py install" (with a setup config following the cython docs
) ? I'd like to check if something is missing but I can't understand what to look for.
How can I clean my environment from previous builds ? (e.g. getting again a "ValueError: numpy.dtype has the wrong size, try recompiling" - I suppose this is because of a build with a previous version).
My setup is the following:
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
BUILD_CYTHON = False
BUILD_CYTHON = True
ext = '.pyx' if BUILD_CYTHON else '.c'
extensions = [Extension("apply_bitwise",
extensions = cythonize(extensions, include_path=[numpy.get_include()])
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to