<div dir="ltr">Hi!<div><br></div><div>I am trying to use distutils.command's build_clib to compile C++11 code but had to monkey patch build_clib to support the extra_compile_args "-std=c++11", see <span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="monospace, monospace">my_build_libraries</font> in</span> <a href="http://sageregina.unhyperbolic.org/setup.py">http://sageregina.unhyperbolic.org/setup.py</a> .</div><div><br></div><div>As you can see, it was only adding the line</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> extra_postargs = build_info.get('extra_compile_args'))</pre></div><div>to</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">objects = self.compiler.compile(
sources,
output_dir=self.build_temp,
macros=macros,
include_dirs=include_dirs,
...)</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">in build_clib.py. Could you make this change to distutils so that is available for everyone and I can eventually stop monkey-patching?</font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Best wishes,</font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"> Matthias Goerner</font></pre></div></div>