ensure_virtualenv.sh 621 B

123456789101112131415161718192021
  1. #
  2. # Copyright 2012 Square Inc.
  3. # Portions Copyright (c) 2016-present, Facebook, Inc.
  4. # All rights reserved.
  5. #
  6. # This source code is licensed under the license found in the
  7. # LICENSE-examples file in the root directory of this source tree.
  8. #
  9. VIRTUALENV_PATH=$1
  10. if [ -d "$VIRTUALENV_PATH" ]; then
  11. echo "Virtual Env already installed"
  12. else
  13. python extern/virtualenv/virtualenv.py $VIRTUALENV_PATH
  14. source $VIRTUALENV_PATH/bin/activate
  15. pushd TestSupport/sr-testharness/
  16. env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
  17. python setup.py develop
  18. popd
  19. fi