Message137481
It would be useful to have an environment marker which matched the compiler being used when compiling a C extension.
Sometimes different compilers require different options (different lib names, different flags, etc); distutils1 setup.py files which have to deal with this currently go through some convolutions to determine the current compiler, and then dynamically modify extra_compile_args before handing them off to setup.
Since packaging is moving to a setup.cfg file, it would be useful to be able to use an environment marker along the lines of 'extra_compile_args = -Dmingw_specific_flag ; packaging.c_compiler == "mingw"', allowing for special options for mingw vs msvc, etc.
Since issue 11921 made it sound like environment markers had been expanded to the extensions sections, I'm hoping this isn't too complicated (but don't know the codebase well enough to write a patch myself). |
|
Date |
User |
Action |
Args |
2011-06-02 15:28:43 | eli.collins | set | recipients:
+ eli.collins, tarek, eric.araujo, alexis |
2011-06-02 15:28:43 | eli.collins | set | messageid: <1307028523.76.0.0549970473948.issue12242@psf.upfronthosting.co.za> |
2011-06-02 15:28:43 | eli.collins | link | issue12242 messages |
2011-06-02 15:28:42 | eli.collins | create | |
|