Description
Description of the problem
I just had a fresh install of the latest miniconda. It now ships Python 3.9.13 and pip 21.2.4 in the base environment by default.
Installing PyGMT in editable mode fails with the following error:
$ pip install --no-deps -e .
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /home/seisman/OSS/gmt/pygmt
(A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)
After upgrading pip to 21.3 or newer, the installation works again.
It's related to a new feature in pip 21.3 (https://pip.pypa.io/en/stable/news/#v21-3), which was released on 2021-10-11.
Support editable installs for projects that have a pyproject.toml and use a build backend that supports PEP 660. (#8212)
So, it means that users who have pip<21.3 cannot install pygmt in editable mode.