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 eli.collins
Recipients alexis, eli.collins, eric.araujo, rpetrov, tarek
Date 2011-09-30.17:18:30
SpamBayes Score 7.7438056e-14
Marked as misclassified No
Message-id <1317403111.6.0.983300631282.issue12242@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a fifth revision (963a2cce068d.diff) of my patch.

I was trying to avoid submitting any more revisions if possible, since this I think this patch is essentially feature-complete. However, this revision adds two things which I felt were needed:

* This patch fixes a serious oversight where UnixCCompiler.get_compiler_version() wouldn't correctly handle compiler names which contains an absolute file path, or suffixes such as ".exe" (which could happen under mingw). This corrects for that, and adds tests for those cases. 

* After thinking about it, I realized the "--get-compiler-info" option I mentioned in my last post was in fact sorely needed... otherwise there is no easy way for users to determine what string specific_compile_args is using to match against its regexp patterns; such as in Roumen's question. (I hope I wasn't overstepping any bounds by going ahead and implementing this)

The option can be run via "pysetup3 -q run build_ext --get-compiler-info". Instead of compiling any extensions, it causes build_ext to print out two lines: the first containing the name of the active compiler class, and the second containing the exact string that will be matched by specific_compile_args. I've added references to this in the documentation, as well as unittests to make sure it behaves properly.
History
Date User Action Args
2011-09-30 17:18:31eli.collinssetrecipients: + eli.collins, tarek, eric.araujo, rpetrov, alexis
2011-09-30 17:18:31eli.collinssetmessageid: <1317403111.6.0.983300631282.issue12242@psf.upfronthosting.co.za>
2011-09-30 17:18:31eli.collinslinkissue12242 messages
2011-09-30 17:18:30eli.collinscreate