Remove dependency on matrix-angular-sdk
This commit is contained in:
parent
86cef6a91b
commit
d9088c923f
|
@ -99,7 +99,14 @@ class SynapseHomeServer(HomeServer):
|
||||||
def build_resource_for_web_client(self):
|
def build_resource_for_web_client(self):
|
||||||
webclient_path = self.get_config().web_client_location
|
webclient_path = self.get_config().web_client_location
|
||||||
if not webclient_path:
|
if not webclient_path:
|
||||||
|
try:
|
||||||
import syweb
|
import syweb
|
||||||
|
except ImportError:
|
||||||
|
quit_with_error(
|
||||||
|
"Could not find a webclient. Please either install syweb\n"
|
||||||
|
"or configure the location of the source to server via\n"
|
||||||
|
"the config option `web_client_location`"
|
||||||
|
)
|
||||||
syweb_path = os.path.dirname(syweb.__file__)
|
syweb_path = os.path.dirname(syweb.__file__)
|
||||||
webclient_path = os.path.join(syweb_path, "webclient")
|
webclient_path = os.path.join(syweb_path, "webclient")
|
||||||
# GZip is disabled here due to
|
# GZip is disabled here due to
|
||||||
|
|
|
@ -34,11 +34,7 @@ REQUIREMENTS = {
|
||||||
"blist": ["blist"],
|
"blist": ["blist"],
|
||||||
"pysaml2": ["saml2"],
|
"pysaml2": ["saml2"],
|
||||||
}
|
}
|
||||||
CONDITIONAL_REQUIREMENTS = {
|
CONDITIONAL_REQUIREMENTS = {}
|
||||||
"web_client": {
|
|
||||||
"matrix_angular_sdk>=0.6.6": ["syweb>=0.6.6"],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def requirements(config=None, include_conditional=False):
|
def requirements(config=None, include_conditional=False):
|
||||||
|
|
Loading…
Reference in New Issue