summary refs log tree commit diff
path: root/synapse/python_dependencies.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-15 22:39:13 +0000
committerErik Johnston <erik@matrix.org>2019-02-15 22:39:13 +0000
commit88af0317a2377d3cfda582bc9ee97a5a793c83f2 (patch)
tree38cef24478845b743793d58e1a438f8cbb1c46a0 /synapse/python_dependencies.py
parentEmergency changes (diff)
parentMerge pull request #4647 from matrix-org/erikj/add_room_publishing_rules (diff)
downloadsynapse-88af0317a2377d3cfda582bc9ee97a5a793c83f2.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/python_dependencies.py')
-rw-r--r--synapse/python_dependencies.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py

index 5d087ee26b..590ee59907 100644 --- a/synapse/python_dependencies.py +++ b/synapse/python_dependencies.py
@@ -143,9 +143,12 @@ def check_requirements(for_feature=None, _get_distribution=get_distribution): for dependency in OPTS: try: _get_distribution(dependency) - except VersionConflict: + except VersionConflict as e: deps_needed.append(dependency) - errors.append("Needed %s but it was not installed" % (dependency,)) + errors.append( + "Needed optional %s, got %s==%s" + % (dependency, e.dist.project_name, e.dist.version) + ) except DistributionNotFound: # If it's not found, we don't care pass