mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:24:48 -04:00
Check dependencies on setup in the nicer way. (#5989)
This commit is contained in:
parent
3505ffcda7
commit
6604b64fae
4 changed files with 20 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue