You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python interface fails to build with make python. This can be fixed by deleting the pyproject.toml file, or by adding setuptools to pyproject.toml and removing the -e flag from pip install in the Makefile.
The text was updated successfully, but these errors were encountered:
The Python interface fails to build with make python. This can be fixed by deleting the pyproject.toml file, or by adding setuptools to pyproject.toml and removing the -e flag from pip install in the Makefile.
Thanks for bring this up. It seems that with the latest pip and setuptools, even deleting the pyproject.toml file and use setup.py alone to install in editable mode also breaks(non-editable mode seems to be fine anyway).
We are using numpy.distutils as the build back end for the fortran python module ext, according to https://numpy.org/doc/stable/reference/distutils_status_migration.html, numpy.distutils is deprecated and only tested with setuptools < 60.0 , so if you apply the following patch and using setuptools==59.8.0. make python might work.
While as numpy.distutils is deprecated, it makes perfect sense that we should switch to meson or scikit-build-core following the migration advice https://numpy.org/doc/stable/reference/distutils_status_migration.html. We should keep the issue open till we switch to the new build back end.
The Python interface fails to build with
make python
. This can be fixed by deleting thepyproject.toml
file, or by addingsetuptools
topyproject.toml
and removing the-e
flag frompip install
in the Makefile.The text was updated successfully, but these errors were encountered: