classification
Title: Error message displayed on stderr when no C compiler is present with ctypes
Type: Stage:
Components: ctypes Versions: Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: theller Nosy List: BreamoreBoy, ehuss, theller
Priority: normal Keywords: patch

Created on 2009-06-24 21:08 by ehuss, last changed 2010-08-01 09:34 by BreamoreBoy.

Files
File name Uploaded Description Edit
ctypes_util.patch ehuss, 2009-06-24 21:08 Patch to squelch error review
Messages (2)
msg89681 - (view) Author: Eric Huss (ehuss) Date: 2009-06-24 21:08
Importing the "uuid" module on a posix system (FreeBSD in my case) that
does not have a C compiler causes "cc: not found" to be sent to stderr.
 This is because it imports ctypes and calls ctypes.util.find_library
which attempts to determine if the C compiler is called "gcc" or "cc"
using a shell command.
msg112299 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-08-01 09:34
The patch simply sends the error message to os.devnull.  I can't test it as posix, but can it be committed as is?
History
Date User Action Args
2010-08-01 09:34:16BreamoreBoysetnosy: + BreamoreBoy
messages: + msg112299
2009-06-24 21:08:28ehusscreate