prepare_synapse.sh 865 B

1234567891011121314151617181920212223242526272829303132333435
  1. #! /bin/bash
  2. set -eux
  3. cd "`dirname $0`/.."
  4. TOX_DIR=$WORKSPACE/.tox
  5. mkdir -p $TOX_DIR
  6. if ! [ $TOX_DIR -ef .tox ]; then
  7. ln -s "$TOX_DIR" .tox
  8. fi
  9. # set up the virtualenv
  10. tox -e py27 --notest -v
  11. TOX_BIN=$TOX_DIR/py27/bin
  12. # cryptography 2.2 requires setuptools >= 18.5.
  13. #
  14. # older versions of virtualenv (?) give us a virtualenv with the same version
  15. # of setuptools as is installed on the system python (and tox runs virtualenv
  16. # under python3, so we get the version of setuptools that is installed on that).
  17. #
  18. # anyway, make sure that we have a recent enough setuptools.
  19. $TOX_BIN/pip install 'setuptools>=18.5'
  20. # we also need a semi-recent version of pip, because old ones fail to install
  21. # the "enum34" dependency of cryptography.
  22. $TOX_BIN/pip install 'pip>=10'
  23. { python synapse/python_dependencies.py
  24. echo lxml psycopg2
  25. } | xargs $TOX_BIN/pip install