poetry2nix icon indicating copy to clipboard operation
poetry2nix copied to clipboard

Planning the transition from numpy.distutils

Open trepetti opened this issue 2 years ago • 0 comments

Opening this as a tracking issue for the deprecation of numpy.distutils. Currently, there is a large maintenance load because of setuptools and numpy's expectations thereof with its custom distutils getting out of sync. This currently prevents numpy >= 1.21 from building.

Long term, numpy will move to meson like scipy did, but for now, I am curious how it might be approached here. It looks like the mainline nixpkgs numpy packages do not have any conflicts. Pinning the setuptools version to a known good one as an additional package in overrides as something to the effect of numpyLegacySetuptools and then injecting that into the numpy package would be one approach. I found that to be insufficient to solve an incompatibility in the setuptools API with --fcompiler flag that numpy uses to specify a Fortran compiler, however.

I am curious what your thoughts are. It is not obvious to me how this would be addressed in poetry2nix.

trepetti avatar Oct 09 '22 00:10 trepetti