summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-03-16 15:33:23 +0000
committerGitHub <noreply@github.com>2022-03-16 15:33:23 +0000
commit4c988172646877bbafa8284e0faa4deb35a1c7d1 (patch)
tree47d4313dea652688008dad21f45f86fda78a3e98
parentHandle cancellation in `DatabasePool.runInteraction()` (#12199) (diff)
downloadsynapse-github/dmr/debug-check-deps.tar.xz
-rw-r--r--synapse/util/check_dependencies.py5
1 files changed, 5 insertions, 0 deletions
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))