[Distutils] setup_requires and install_requires

Ralf Gommers ralf.gommers at gmail.com
Sat May 24 15:01:30 CEST 2014


On Mon, May 19, 2014 at 1:01 AM, Toby St Clere Smithe <mail at tsmithe.net>wrote:

> Hi,
>
> I'm sure you're all aware of this,


I wasn't actually.


> but I wonder if there's any progress
> for me to be aware of. I've got an extension that I build with
> distutils. It requires numpy both to build and to run, so I have numpy
> in both setup_requires and install_requires. Yet setup.py builds numpy
> twice -- once for the build stage, and then again on installation. This
> seems inefficient to me -- why not just build it once? Is this by
> design?
>

Seems fairly inefficient, so I'd guess it's not by design.

Note that if numpy is already installed, you may want to avoid adding the
*_requires arguments in order not to silently upgrade or break the
installed numpy. Something like
https://github.com/scipy/scipy/pull/3566/files

Ralf



>
> Best regards,
>
>
> --
> Toby St Clere Smithe
> http://tsmithe.net
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140524/a0f3bde6/attachment.html>


More information about the Distutils-SIG mailing list