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.
Furthermore, "python setup.py build" runs with the RPM CFLAGS even if you don't set the variable. Setting it mereley doubles the flags.
Furthermore, "python setup.py build" runs with the RPM CFLAGS even if you don't set the variable. Setting it mereley doubles the flags.
2013/7/5 Susi Lehtola <jussilehtola@xxxxxxxxxxxxxxxxx>
Well, it still seems to be implicitly atOn Fri, 5 Jul 2013 12:02:58 +0200
Sergio Pascual <sergio.pasra@xxxxxxxxx> wrote:
> Hello,
>
>
> I was wandering if it is still needed to put set CFLAGS before
> compilling python extensions, like this:
>
> CFLAGS="%{optflags}" %{__python} setup.py build
>
> There is nothing about it in the guidelines, altough I recall reading
> about it, so perhaps it was removed from the wiki?
>
> When comparing the compilation lines with and without setting CFLAGS,
> I see lots of repeated switches but nothing clearly different.
https://fedoraproject.org/wiki/Packaging:Python
You only need CFLAGS when there are C extensions used. If a package is
pure python, it's noarch and doesn't need the CFLAGS.
--
Susi Lehtola
Fedora Project Contributor
jussilehtola@xxxxxxxxxxxxxxxxx
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging
-- packaging mailing list packaging@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/packaging