Is this behavior intentional? >>> from Cython.Build import cythonize >>> cythonize('/this/file/doesnt/exist.pyx') [] 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. -- Kevin Norris
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
On Sat, Dec 20, 2014 at 1:01 AM, Stefan Behnel <stefan_ml@behnel.de> wrote:
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.
I agree. https://github.com/cython/cython/commit/1fdd0ca794a31c11a96ff845e003ff2e1917...
participants (3)
-
Kevin Norris -
Robert Bradshaw -
Stefan Behnel