[Numpy-discussion] Remove FCompiler flags?

Ralf Gommers ralf.gommers at gmail.com
Thu Jul 7 16:19:39 EDT 2016


On Thu, Jul 7, 2016 at 12:43 AM, Rob Nagler <numpy-cpbxr at q33.us> wrote:

> I would like to remove "-fno-second-underscore" and "-Wall" from the
> fcompiler. I had hacked a build_clib subclass to remove the flags
> dynamically, but that is fragile (and is now broken). Is there a right way
> to remove flags?
> <https://mail.scipy.org/mailman/listinfo/numpy-discussion>
>

No good way to do that I'm afraid, every method is pretty fragile. If it's
on my own machine, I would just remove the flags from fcompiler/gnu.py by
hand. If it needs to be dynamically, then I'd probably go for
monkeypatching the GnuFCompiler/Gnu95FCompiler classes from that package
instead of a command subclass.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160707/4f669756/attachment.html>


More information about the NumPy-Discussion mailing list