[Numpy-discussion] setuptools/distutils merger & numpy.distutils

Ralf Gommers ralf.gommers at gmail.com
Sun Sep 6 05:28:04 EDT 2020


On Sun, Sep 6, 2020 at 9:50 AM Daniele Nicolodi <daniele at grinta.net> wrote:

> On 06/09/2020 07:06, David Cournapeau wrote:
> > Assuming the numpy.distutils codebase has not changed much in the last
> > 10 years, my sense is that a lot of the features that relied on monkey
> > patching can be merged upstream,  fortran support being one notable
> > exception.
>
> This may be bigger endeavor, but wouldn't it be possible to extend
> setuptools interfaces in a way that plugging in the fortran support does
> not require monkey patching or accessing the implementation internals?
>

Probably not, since distutils really doesn't have much of a design, or
separation between API and implementation.


> Such an extension could also be used to extend setuptools to handle
> extensions written in other languages such as Rust.
>
> By the way, how is Cython affected by this? Cython also distributes an
> extension to (the module formerly know as) distutils to transparently
> compile extensions written in Cython. Could the efforts toward
> multi-language support in distutils be coordinated with the Cython
> maintainers?
>

Cython.Distutils is a few hundred lines of code, numpy.distutils is 20,000
lines of code. I don't think Cython will have much problems adapting.

Cheers,
Ralf


> Cheers,
> Dan
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200906/b2d290cc/attachment-0001.html>


More information about the NumPy-Discussion mailing list