summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-04-06 17:37:56 +0100
committerGitHub <noreply@github.com>2022-04-06 17:37:56 +0100
commit2cf74cf2fcde0e00dd583ae626c24ac15e8911bf (patch)
treeece3e76cc5664b77a6d63b7bbc7fe43a142c7cc3 /synapse
parentFix `synapse_event_persisted_position` metric (#12390) (diff)
downloadsynapse-2cf74cf2fcde0e00dd583ae626c24ac15e8911bf.tar.xz
Narrow the `importlib_metadata` dependency (#12400)
Diffstat (limited to '')
-rw-r--r--synapse/python_dependencies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py
index cd68aa362e..8bd91d5f72 100644
--- a/synapse/python_dependencies.py
+++ b/synapse/python_dependencies.py
@@ -91,7 +91,7 @@ REQUIREMENTS = [
     "packaging>=16.1",
     # At the time of writing, we only use functions from the version `importlib.metadata`
     # which shipped in Python 3.8. This corresponds to version 1.4 of the backport.
-    "importlib_metadata>=1.4",
+    "importlib_metadata>=1.4 ; python_version < '3.8'",
 ]
 
 CONDITIONAL_REQUIREMENTS = {