<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, "python setup.py build" runs with the RPM CFLAGS even if you don'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"><<a href="mailto:jussilehtola@fedoraproject.org" target="_blank">jussilehtola@fedoraproject.org</a>></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 <<a href="mailto:sergio.pasra@gmail.com">sergio.pasra@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
><br>
> I was wandering if it is still needed to put set CFLAGS before<br>
> compilling python extensions, like this:<br>
><br>
> CFLAGS="%{optflags}" %{__python} setup.py build<br>
><br>
> There is nothing about it in the guidelines, altough I recall reading<br>
> about it, so perhaps it was removed from the wiki?<br>
><br>
> When comparing the compilation lines with and without setting CFLAGS,<br>
> 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's noarch and doesn'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>