<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 8:33 AM, Ned Deily <span dir="ltr"><<a href="mailto:nad@python.org" target="_blank">nad@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some months ago, Sylvain brought up a couple of proposals for Distutils.  The second proposal received some discussion but it appears that the first one got lost.  Here it is:<br>
<br>
> From sylvain.corlay at <a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a>  Wed May 25 12:01:51 2016<br>
> From: sylvain.corlay at <a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a> (Sylvain Corlay)<br>
> Date: Wed, 25 May 2016 12:01:51 -0400<br>
> Subject: [Distutils] Distutils improvements regarding header installation<br>
>  and building C extension modules<br>
> Message-ID: <CAK=<a href="mailto:Phk4tg_S2mVS2eAkLK514Aq_gq26yEg_vWwAEz8NnstypMg@mail.gmail.com">Phk4tg_S2mVS2eAkLK514Aq_<wbr>gq26yEg_vWwAEz8NnstypMg@mail.<wbr>gmail.com</a>><br>
><br>
> Hello everyone,<br>
><br>
> This is my first post here so, apologies if I am breaking any rules.<br>
><br>
> Lately, I have been filing a few bug reports and patches to distutils on<br>
> <a href="http://bugs.python.org" rel="noreferrer" target="_blank">bugs.python.org</a> that all concern the installation and build of C++<br>
> extensions.<br>
><br>
> *1) The distutils.ccompiler has_flag method.*<br>
> (<a href="http://bugs.python.org/issue26689" rel="noreferrer" target="_blank">http://bugs.python.org/<wbr>issue26689</a>)<br>
><br>
> When building C++ extension modules that require a certain compiler flag<br>
> (such as enabling C++11 features), you may want to check if the compiler<br>
> has such a flag available.<br>
><br>
> I proposed a patch adding a `has_flag` method to ccompiler. It is an<br>
> equivalent to cmake' s CHECK_CXX_COMPILER_FLAG.<br>
><br>
> The implementation is similar to the one of has_function which by the way<br>
> has a pending patch by minrk in issue (<a href="http://bugs.python.org/issue25544" rel="noreferrer" target="_blank">http://bugs.python.org/<wbr>issue25544</a>).<br>
<br>
On python-dev and in the bug tracker, Sylvain has understandably asked for a review with an eye to adding this new feature to Python 3.6 whose feature code cutoff is scheduled for a few weeks from now.  As release manager, I am not opposed in general to adding new features to Distutils but I think we should be very cautious about modifying or adding new Distutils APIs, given that many third-party distribution authors want to support their packages on multiple versions.  So I want to make sure that there is some agreement that adding this new API starting with 3.6 is a good thing to do rather than having it go in under the radar.  </blockquote><div><br></div><div>I'd rather see that kind of thing added to setuptools. We're already having to deal with setuptools as a moving target, so if distutils becomes one again as well that means more testing with combinations of different Python and setuptools versions. Imho distutils changes should be bugfix and essential maintenance only.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If there are technical review issues with the implementation, it would probably be better to give those directly on the bug tracker.<br></blockquote><div><br></div><div>The usual one for disutils: it's a patch with zero tests and zero docs. It looks pretty safe to add, but still....<br><br></div><div>Ralf<br><br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Opinions?<br>
<br>
Thanks!<br>
--Ned<br>
<br>
--<br>
  Ned Deily<br>
  <a href="mailto:nad@python.org">nad@python.org</a> -- []<br>
<br>
______________________________<wbr>_________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/distutils-sig</a><br>
</blockquote></div><br></div></div>