element-web-Github/test/end-to-end-tests/element/install-webserver.sh
Travis Ralston b90a0c443d
Fix end-to-end tests (synapse setup) (#7420)
* Update install.sh

* Update install.sh

* Update develop.yml

* Update install.sh

* Update develop.yml

* Update install.sh

* Update install.sh

* Work around suspected frozendict bug

* Faff around with install-webserver.sh

* Actually I don't think these clash anyway

* Minor cleanup

* Add comments

Co-authored-by: Olivier <olivier@librepush.net>
2021-12-21 02:12:07 +00:00

22 lines
508 B
Bash
Executable File

#!/bin/bash
set -e
BASE_DIR=$(cd $(dirname $0) && pwd)
cd $BASE_DIR
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
# but with support for multiple threads) into a virtualenv.
(
virtualenv -p python3 env
source env/bin/activate
pip install --upgrade pip
# Pin setuptools to work around crash bug in v60
# See https://github.com/vector-im/element-web/issues/20287
pip install setuptools==v59.8.0
pip install ComplexHttpServer
deactivate
)