Announcement: pip 22.1 release!

On behalf of the PyPA, I am pleased to announce that the pip team has just released pip 22.1!

Highlights

  • DISRUPTION: On Python 3.11+, use importlib.metadata for querying the filesystem-based installation database.
  • DISRUPTION: When building packages with --no-build-isolation, pip now validates that the declared packages are available in the environment. This cannot be disabled – users are encouraged to use build · PyPI for such usecases.
  • DISRUPTION: Prioritize URL credentials over netrc.
  • Provide user interface for supplying config settings to build backends.
  • More improvements to the UI, error messages and the upgrade prompt. :sparkles:
  • Speedup improvements! :racehorse:

This release contains many other usability improvements, enhancements, and bugfixes. You can find the full list in our changelog.

Thanks

As with all pip releases, a significant amount of the work was contributed by pip’s user community. Huge thanks to all who have contributed, whether through code, documentation, issue reports and/or discussion. Your help keeps pip improving, and is hugely appreciated.

Pradyun Gedam

19 Likes
  • DISRUPTION : When building packages with --no-build-isolation , pip now validates that the declared packages are available in the environment. This cannot be disabled – users are encouraged to use build · PyPI for such usecases.

It looks like this change had the very undesirable consequence that it’s not possible anymore to install a package with custom, installed-from-source versions of setup dependencies, which is disruptive indeed. I do hope this was an inadvertent side effect and not done so on purpose. See regression: `--no-build-isolation` validation causes failure with setup deps installed from custom commit · Issue #11123 · pypa/pip · GitHub

1 Like