From 7dbb4d775a61c31629366370c2c1c44f0764305c Mon Sep 17 00:00:00 2001 From: Marlon Keating Date: Wed, 5 Aug 2026 19:50:30 +0000 Subject: [PATCH] build: pin pip <26.2 --- requirements/constraints.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index d91704bb..99f81daa 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -10,3 +10,13 @@ # Common constraints for edx repos -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt + +# pip 26.2 removed the private `stdlib_pkgs` attribute from `pip._internal.utils.compat` +# (relocated to `pip._internal.metadata.base`), which pip-tools (through at least 7.6.0) still +# imports directly. This breaks `pip-compile`/`make upgrade` with: +# ImportError: cannot import name 'stdlib_pkgs' from 'pip._internal.utils.compat' +# See https://github.com/jazzband/pip-tools/issues/2436 and +# https://github.com/pypa/pip/issues/14214 for details on the ongoing fix. +# Remove this constraint once a pip-tools release lands that no longer depends on this +# removed private API. +pip<26.2