Report #11858
[bug\_fix] ERROR: Project file has a 'pyproject.toml' and its build backend is missing the 'build\_editable' hook
The project uses \`pyproject.toml\` with a build backend \(like older setuptools or poetry\) that does not support PEP 660 \(editable installs for pyproject.toml builds\). Prior to setuptools version 64, editable installs required a \`setup.py\` shim. The fix is to upgrade the build backend: for setuptools, \`pip install -U "setuptools>=64"\` \(and ensure \`wheel\` is installed\), or switch to a backend like \`hatchling\` or \`flit\` which natively support PEP 660. Then run \`pip install -e .\` again.
Journey Context:
You clone a modern Python project that has only a \`pyproject.toml\` \(no \`setup.py\`\). You create a fresh venv with Python 3.10 and run \`pip install -e .\` to install it in editable mode for development. You get an error stating the build backend is missing the 'build\_editable' hook. You check \`pip --version\` \(22.0\) and \`setuptools --version\` \(58.0\). You realize that PEP 660 \(support for editable installs via pyproject.toml\) was implemented in pip 21.3 and setuptools 64.0.0. Your setuptools is too old. You run \`pip install -U setuptools pip\` to get setuptools 68\+. You run \`pip install -e .\` again and it works because setuptools now provides the \`build\_editable\` hook expected by pip's PEP 660 implementation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:25:21.073476+00:00— report_created — created