This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients MrJean1, gregory.p.smith, loewis, theller
Date 2008-04-05.22:00:07
SpamBayes Score 0.046984326
Marked as misclassified No
Message-id <1207432809.26.0.772684801158.issue2552@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-04-05 22:00:09gregory.p.smithsetspambayes_score: 0.0469843 -> 0.046984326
recipients: + gregory.p.smith, loewis, theller, MrJean1
2008-04-05 22:00:09gregory.p.smithsetspambayes_score: 0.0469843 -> 0.0469843
messageid: <1207432809.26.0.772684801158.issue2552@psf.upfronthosting.co.za>
2008-04-05 22:00:08gregory.p.smithlinkissue2552 messages
2008-04-05 22:00:07gregory.p.smithcreate