<div dir="ltr">At the wiki page you mention, CFLAGS only appear in an example box about packaging python3. If this a guideline, it is very well hidden. It should be explicit.<br><br>Furthermore, &quot;python setup.py build&quot; runs with the RPM CFLAGS even if you don&#39;t set the variable. Setting it mereley doubles the flags. </div>

<div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/5 Susi Lehtola <span dir="ltr">&lt;<a href="mailto:jussilehtola@fedoraproject.org" target="_blank">jussilehtola@fedoraproject.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Fri, 5 Jul 2013 12:02:58 +0200<br>
Sergio Pascual &lt;<a href="mailto:sergio.pasra@gmail.com">sergio.pasra@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt;<br>
&gt; I was wandering if it is still needed to put set CFLAGS before<br>
&gt; compilling python extensions, like this:<br>
&gt;<br>
&gt; CFLAGS=&quot;%{optflags}&quot; %{__python} setup.py build<br>
&gt;<br>
&gt; There is nothing about it in the guidelines, altough I recall reading<br>
&gt; about it, so perhaps it was removed from the wiki?<br>
&gt;<br>
&gt; When comparing the compilation lines with and without setting CFLAGS,<br>
&gt; I see lots of repeated switches but nothing clearly different.<br>
<br>
</div></div>Well, it still seems to be implicitly at<br>
 <a href="https://fedoraproject.org/wiki/Packaging:Python" target="_blank">https://fedoraproject.org/wiki/Packaging:Python</a><br>
<br>
You only need CFLAGS when there are C extensions used. If a package is<br>
pure python, it&#39;s noarch and doesn&#39;t need the CFLAGS.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Susi Lehtola<br>
Fedora Project Contributor<br>
<a href="mailto:jussilehtola@fedoraproject.org">jussilehtola@fedoraproject.org</a><br>
--<br>
packaging mailing list<br>
<a href="mailto:packaging@lists.fedoraproject.org">packaging@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/packaging" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/packaging</a></font></span></blockquote></div><br></div>