[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C
Gregory P. Smith
report at bugs.python.org
Sun Apr 6 00:00:09 CEST 2008
Gregory P. Smith <greg at krypto.org> added the comment:
agreed, do not check to see if the string is == 'gcc'. Instead,
actually execute the CC compiler with a -v flag and test if 'gcc
version' in output.
something like this (but split into a few statements for readability):
if 'gcc version' not in os.popen(sysconfig.get_config_vars().get('CC',
'gcc') + ' -v').read():
# gcc is required for ctypes
----------
nosy: +gregory.p.smith
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2552>
__________________________________
More information about the Python-bugs-list
mailing list