create-deploy-environment
author Gregory Szorc <gps@mozilla.com>
Mon, 23 Jan 2017 17:22:54 -0800
changeset 691174 1550fe5c904f8c8960a32c74f59a438909f290b8
parent 691168 6d2ebf23ecf9b909b9df60b7020b9893bb9693d0
child 691446 d1763b870d1b9993f25f55fa5049c5d8c68f4081
permissions -rwxr-xr-x
global: update vendored pyflakes from 0.7.3 to 1.5.0 MozReview-Commit-ID: HwxUUi0rL9W

#!/usr/bin/env bash
# Bail on any setup error
set -eu

ROOT=`pwd`
VENV=${ROOT}/venv

if [ ! -d ${VENV} ]; then
  . ${ROOT}/testing/create-virtualenv
fi

cd ${ROOT}

# activate fails on read of PS1, which doesn't exist in non-interactive shell
set +u
source ${VENV}/bin/activate
set -u

# Note: pycrypto may not build on OSX with hombrew gmp unless you add:
# export CFLAGS='-I/usr/local/include -L/usr/local/lib'
pip install --upgrade --require-hashes -r deploy-requirements.txt

cd testing
python setup.py develop
cd ..