[issue41207] distutils.command.build_ext raises FileNotFoundError

STINNER Victor report at bugs.python.org
Mon Jul 6 08:02:40 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> Programs trapping CompileError but not FileNotFoundError will crash where once they had error handling.

Do you mean mean that spawn() of distutils.spawn should catch FileNotFoundError and raise a CompilerError instead?

It seems like before my commit 1ec63b62035e73111e204a0e03b83503e1c58f2e, any OSError was catched and replaced with DistutilsExecError, not only FileNotFoundError.

Do you want to propose a fix?

----------
nosy: +vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41207>
_______________________________________


More information about the Python-bugs-list mailing list