compiler-specific extra_compiler_args

24 Oct
2008
24 Oct
'08
9:30 p.m.
Hello,
using vanilla distutils with vanilla Python 2.5, I would like to pass different extra_compiler_args to the setup() call based on the compiler I'm using.
In fact, if I'm using GCC (whether on Windows, Linux or Mac), I have a few options to specify; if I'm using MSVC (on Windows), I have others.
This looks like a basic need, but I couldn't find a way to achieve it. Most existing scripts in the wild seem to simply do a check on the platform, which neglects the fact that one can specify --compiler=mingw32 to use GCC MinGW to build on Windows.
Any suggestion on how to achieve this?
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
5271
Age (days ago)
5271
Last active (days ago)
0 comments
1 participants
participants (1)
-
Giovanni Bajo