From 4c988172646877bbafa8284e0faa4deb35a1c7d1 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 16 Mar 2022 15:33:23 +0000 Subject: debug check deps for #12223 --- synapse/util/check_dependencies.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synapse/util/check_dependencies.py b/synapse/util/check_dependencies.py index 12cd804939..199109342e 100644 --- a/synapse/util/check_dependencies.py +++ b/synapse/util/check_dependencies.py @@ -25,6 +25,7 @@ from typing import Iterable, NamedTuple, Optional from packaging.requirements import Requirement +logger = logging.getLogger(__name__) DISTRIBUTION_NAME = "matrix-synapse" try: @@ -164,6 +165,10 @@ def check_requirements(extra: Optional[str] = None) -> None: errors.append(_not_installed(requirement, extra)) else: # We specify prereleases=True to allow prereleases such as RCs. + logger.warning( + "DEP CHECK: %s, %s, %s, %r", + requirement, must_be_installed, dist, dist.version, + ) if not requirement.specifier.contains(dist.version, prereleases=True): deps_unfulfilled.append(requirement.name) errors.append(_incorrect_version(requirement, dist.version, extra)) -- cgit 1.4.1