[Numpy-discussion] numpy.distutils issue

Charles R Harris charlesr.harris at gmail.com
Wed Aug 24 19:05:48 EDT 2016


On Wed, Aug 24, 2016 at 1:41 PM, Pavlyk, Oleksandr <
oleksandr.pavlyk at intel.com> wrote:

> Hi All,
>
>
>
> According to the documentation page:
>
>
>
>    http://docs.scipy.org/doc/numpy/reference/distutils.html
>
>
>
> Function add_library allows the following keywords:
>
>       extra_f77_compiler_args
>
>       extra_f90_compiler_args
>
>
>
> however setting them seem to have no effect for my extension. Digging
> deeper, I discovered,
>
> the documentation is inconsistent with the implementation, as per
>
>
>
> https://github.com/numpy/numpy/blob/v1.11.0/numpy/
> distutils/fcompiler/__init__.py#L569
>
>
>
> https://github.com/numpy/numpy/blob/v1.11.0/numpy/
> distutils/fcompiler/__init__.py#L583
>
>
>
> And indeed, setting extra_f77_compile_arg has the effect I was looking
> for.
>
> Fixing it is easy, but I am less certain whether we should fix the docs,
> or the code.
>
>
>
> Given that add_extension lists extra_compile_args, extra_f77_compile_args,
> etc, I would think it
>
> Is the documentation that need to change.
>
>
>
> Please confirm, and I will open up a pull request for this.
>

That's rather unfortunate, "compiler" would be better than "compile", but
it is best to document the actual behavior. If we later settle on changing
the argument we can do that, but it is a more involved process.

Chuck

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160824/dc71bf0d/attachment.html>


More information about the NumPy-Discussion mailing list