Closed ljlamarche closed 2 years ago
See also https://github.com/spacepy/spacepy/issues/672:
As a quick remedy, setting
SETUPTOOLS_USE_DISTUTILS=stdlib
before calling the pip installation helps.
Required fixes, as suggested by the NumPy documentation:
1. Pin `setuptools` to a version < 60 in the package requirements as a quick fix. 2. Get rid of the deprecated `numpy.distutils` in the long run.
Confirming that this works providing fortran compiler is available and working:
export SETUPTOOLS_USE_DISTUTILS=stdlib
pip install apexpy
I see that the setuptools pinning is done in the current develop branch. Installing from that also works: pip install git+https://github.com/aburrell/apexpy.git@develop
In addition to @smithara correct comment that pinning this has already been addressed in the develop branch, setuptools released a new version fixing this problem upstream (https://github.com/pypa/setuptools/releases/tag/v65.6.3). Closing this!
Description It appear that apexpy is susceptible to https://github.com/pypa/setuptools/issues/3693 This looks to be a recent bug due to a recent release of setuptools removing the class
distutils.log.Log
and is effecting a number of projects (notably https://github.com/numpy/numpy/issues/22623). Attempting to pip install apexpy produces the following output:Steps to Reproduce
--no-binary
flagExpected Behavior Successful installation of apexpy
Computer:
Comments This looks like something that should and will be handled by setuptools developers. Alternatively, I'm not confident about this, but the new build system might make this irrelevant?