diff --git a/news/10148.deprecation.rst b/news/10148.deprecation.rst new file mode 100644 index 00000000000..8e3ab145d6f --- /dev/null +++ b/news/10148.deprecation.rst @@ -0,0 +1,2 @@ +Re-enable the "Value for ... does not match" location warnings to field a new +round of feedback for the ``distutils``-``sysconfig`` transition. diff --git a/src/pip/_internal/locations/__init__.py b/src/pip/_internal/locations/__init__.py index 3acb51bc454..b0cf055404e 100644 --- a/src/pip/_internal/locations/__init__.py +++ b/src/pip/_internal/locations/__init__.py @@ -45,13 +45,13 @@ def _default_base(*, user: bool) -> str: def _warn_if_mismatch(old: pathlib.Path, new: pathlib.Path, *, key: str) -> bool: if old == new: return False - issue_url = "https://github.com/pypa/pip/issues/9617" + issue_url = "https://github.com/pypa/pip/issues/10148" message = ( "Value for %s does not match. Please report this to <%s>" "\ndistutils: %s" "\nsysconfig: %s" ) - logger.debug(message, key, issue_url, old, new) + logger.warning(message, key, issue_url, old, new) return True