[issue6338] Error message displayed on stderr when no C compiler is present with ctypes

Martin Panter report at bugs.python.org
Tue May 10 09:05:16 EDT 2016


Martin Panter added the comment:

I presume the problem is that Free BSD’s “type” command outputs the error to the shell’s original stderr, rather than the one given on the “type” command line. If so, the Python 3 patches for Issue 22636 should avoid it by using shutil.which() instead.

However that function does not exist in Python 2, so a different solution needs to be found. Probably an improved version of Eric’s patch would be good.

----------
dependencies: +avoid using a shell in ctypes.util: replace os.popen with subprocess
stage: patch review -> needs patch
versions: +Python 2.7 -Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6338>
_______________________________________


More information about the Python-bugs-list mailing list