Skip to content

Conversation

@notatallshaw
Copy link
Member

@notatallshaw notatallshaw commented Oct 24, 2025

Toward #13522

I intend to merge this PR around 19:00 Americas/New_York.

@notatallshaw
Copy link
Member Author

Some of the author additions look odd, I will take a look at the process that adds them before merging.

Comment on lines +18 to +19
- Remove support for the legacy ``setup.py develop`` editable method in setuptools
editable installs; setuptools >= 64 is now required. (`#11457 <https://github.com/pypa/pip/issues/11457>`_)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, does pip raise a friendly error on pip install -e project --no-build-isolation when setuptools<64 is installed? Not sure how common this would be, but it could trip some people up @sbidoul.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be a possible future improvement, even maybe for a 25.3.1.

But detecting the version of the selected setuptools sounds fraught with edge cases, I wouldn't accept a PR for that today.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ pip install -e "pip-test-package @ git+https://github.com/pypa/pip-test-package" --no-build-isolation
Obtaining pip-test-package from git+https://github.com/pypa/pip-test-package
  Cloning https://github.com/pypa/pip-test-package to ./.venv/src/pip-test-package
  Running command git clone --filter=blob:none --quiet https://github.com/pypa/pip-test-package /tmp/brol/.venv/src/pip-test-package
  Resolved https://github.com/pypa/pip-test-package to commit 96d6d72ac54132aecbdd5adac88bc8d1f8fb986b
  Checking if build backend supports build_editable ... done
ERROR: Project pip-test-package from git+https://github.com/pypa/pip-test-package uses a build backend that is missing the 'build_editable' hook, so it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

That sounds reasonable. To do more we'd need to reintroduce setuptools-specific code which I'm not keen to do. I'd rather address that via documentation and communication.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if we don't want to add setuptools specific code, then perhaps adding a "consider upgrading your locally installed build backend" when --no-build-isolation hint may be better. That's obviously out of scope for the pip 25.3 release cycle though.

@notatallshaw notatallshaw merged commit 430f1da into pypa:main Oct 24, 2025
28 checks passed
@notatallshaw
Copy link
Member Author

Mistakes were made 🙁, there is no release, I'm following up shortly with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants