Skip to content

Commit

Permalink
Re-enable location warning
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jul 9, 2021
1 parent f37fc4c commit ad8054f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions news/10148.deprecation.rst
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions src/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:/pypa/pip/issues/9617"
issue_url = "https:/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


Expand Down

0 comments on commit ad8054f

Please sign in to comment.