Skip to content

Commit 0c29bfe

Browse files
authored
Merge pull request #9912 from uranusjr/sysconfig-remove-warning-for-python-release
Remove the location warnings for now
2 parents 999b121 + f56ec32 commit 0c29bfe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

news/9912.removal.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Temporarily set the new "Value for ... does not match" location warnings level
2+
to *DEBUG*, to hide them from casual users. This prepares pip 21.1 for CPython
3+
inclusion, while pip maintainers digest the first intake of location mismatch
4+
issues for the ``distutils``-``sysconfig`` trasition.

src/pip/_internal/locations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _warn_if_mismatch(old: pathlib.Path, new: pathlib.Path, *, key: str) -> bool
5151
"\ndistutils: %s"
5252
"\nsysconfig: %s"
5353
)
54-
logger.warning(message, key, issue_url, old, new)
54+
logger.debug(message, key, issue_url, old, new)
5555
return True
5656

5757

@@ -65,7 +65,7 @@ def _log_context(
6565
message = (
6666
"Additional context:" "\nuser = %r" "\nhome = %r" "\nroot = %r" "\nprefix = %r"
6767
)
68-
logger.warning(message, user, home, root, prefix)
68+
logger.debug(message, user, home, root, prefix)
6969

7070

7171
def get_scheme(

0 commit comments

Comments
 (0)