summary refs log tree commit diff
path: root/synapse/python_dependencies.py
diff options
context:
space:
mode:
authorJorik Schellekens <joriksch@gmail.com>2019-09-11 14:00:37 +0100
committerGitHub <noreply@github.com>2019-09-11 14:00:37 +0100
commit6604b64fae970f534d3e2a61f2fbbe51599fa26d (patch)
tree24c672f4683aa711084c99d1258f0e9c9aeabeef /synapse/python_dependencies.py
parentFix existing v2 identity server calls (MSC2140) (#6013) (diff)
downloadsynapse-6604b64fae970f534d3e2a61f2fbbe51599fa26d.tar.xz
Check dependencies on setup in the nicer way. (#5989)
Diffstat (limited to '')
-rw-r--r--synapse/python_dependencies.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py

index ec0ac547c1..07345e916a 100644 --- a/synapse/python_dependencies.py +++ b/synapse/python_dependencies.py
@@ -147,7 +147,13 @@ def check_requirements(for_feature=None): ) except DistributionNotFound: deps_needed.append(dependency) - errors.append("Needed %s but it was not installed" % (dependency,)) + if for_feature: + errors.append( + "Needed %s for the '%s' feature but it was not installed" + % (dependency, for_feature) + ) + else: + errors.append("Needed %s but it was not installed" % (dependency,)) if not for_feature: # Check the optional dependencies are up to date. We allow them to not be