[Cython] Cythonize silently ignores nonexistent files

Stefan Behnel stefan_ml at behnel.de
Sat Dec 20 10:01:58 CET 2014


Kevin Norris schrieb am 20.12.2014 um 01:47:
> Is this behavior intentional?
> 
>     >>> from Cython.Build import cythonize
>     >>> cythonize('/this/file/doesnt/exist.pyx')
>     []

Yes, it's intentional. The path you pass is actually a glob expression, so
it may match any number of files.


> It would be *really* nice if Cython would raise an exception (or
> something) in this case.  I just spent 20 minutes trying to puzzle out
> Cython/Setuptools compatibility when the actual problem was staring me
> in the face.

I think we should issue a warning if the expression matches nothing at all
as that's most likely not intended by the user.

Stefan



More information about the cython-devel mailing list