summary refs log tree commit diff
path: root/synapse/python_dependencies.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-25 15:50:25 +0100
committerErik Johnston <erik@matrix.org>2015-08-25 15:50:25 +0100
commit747535f20f9bb73bfcb2ca08ea5c57e2bcefe3c0 (patch)
tree652bd365f681c631b20d3116c9e558e4444ade62 /synapse/python_dependencies.py
parentMerge pull request #246 from matrix-org/erikj/config_helper_function (diff)
parentPrint the correct pip install line when failing due to lack of matrix-angular... (diff)
downloadsynapse-747535f20f9bb73bfcb2ca08ea5c57e2bcefe3c0.tar.xz
Merge pull request #245 from matrix-org/erikj/configurable_client_location
Allow specifying a directory to host a web client from
Diffstat (limited to '')
-rw-r--r--synapse/python_dependencies.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/synapse/python_dependencies.py b/synapse/python_dependencies.py

index fa06480ad1..d7e3a686fa 100644 --- a/synapse/python_dependencies.py +++ b/synapse/python_dependencies.py
@@ -43,8 +43,8 @@ CONDITIONAL_REQUIREMENTS = { def requirements(config=None, include_conditional=False): reqs = REQUIREMENTS.copy() - for key, req in CONDITIONAL_REQUIREMENTS.items(): - if (config and getattr(config, key)) or include_conditional: + if include_conditional: + for _, req in CONDITIONAL_REQUIREMENTS.items(): reqs.update(req) return reqs @@ -52,18 +52,18 @@ def requirements(config=None, include_conditional=False): def github_link(project, version, egg): return "https://github.com/%s/tarball/%s/#egg=%s" % (project, version, egg) -DEPENDENCY_LINKS = [ - github_link( +DEPENDENCY_LINKS = { + "syutil": github_link( project="matrix-org/syutil", version="v0.0.7", egg="syutil-0.0.7", ), - github_link( + "matrix-angular-sdk": github_link( project="matrix-org/matrix-angular-sdk", version="v0.6.6", egg="matrix_angular_sdk-0.6.6", ), -] +} class MissingRequirementError(Exception): @@ -131,7 +131,7 @@ def check_requirements(config=None): def list_requirements(): result = [] linked = [] - for link in DEPENDENCY_LINKS: + for link in DEPENDENCY_LINKS.values(): egg = link.split("#egg=")[1] linked.append(egg.split('-')[0]) result.append(link)