These are chat archives for numpy/numpy

15th
Nov 2016
Holger Peters
@HolgerPeters
Nov 15 2016 08:16
I am wondering what the exact purpose of numpy.distutils.core.setup is (https://github.com/numpy/numpy/blob/master/numpy/distutils/core.py#L107).
or rather: Is there a way to rewrite a setup.py using numpy.distutils.core.setup in a way that I can add numpy to the setup_requires and a pip wheel . will just run?
Nathan Goldbaum
@ngoldbaum
Nov 15 2016 16:57
no, you don't want to use numpy.distutils for that, you should really be using setuptools for that these days.
is the worry that numpy isn't necessarily installed when setup.py is invoked?
if so there are some workarounds for that to basically delay the import of numpy until it is already installed by setuptools