#!/bin/bash

set -e

# Prebuilt wheels location
WHEELHOUSE ?= file:///net/san1/disk1/wheelhouse/

# Use prebuilt packages ONLY by default
export AG_PIP_OPTS = --use-wheel --find-links=$(WHEELHOUSE) --no-index

function absdir () {
   pushd $(dirname $1) > /dev/null
   local result=$(pwd)
   popd > /dev/null
   echo ${result}
}

STRESS_DIR=$(absdir $0)
ENV_DIR=${STRESS_DIR}/env
BASE_DIR=${STRESS_DIR}/..

if [ ! -d "${ENV_DIR}" ]
then
    virtualenv --no-site-packages ${ENV_DIR}
    source ${ENV_DIR}/bin/activate
    pip install -U setuptools pip wheel ${AG_PIP_OPTS}
else
    source  ${ENV_DIR}/bin/activate
fi
export PYCURL_SSL_LIBRARY=nss
pip install -r ${BASE_DIR}/requirements.txt ${AG_PIP_OPTS}
pip install -r ${BASE_DIR}/requirements2.txt ${AG_PIP_OPTS}
pip install -e ${BASE_DIR} ${AG_PIP_OPTS}
cd ${STRESS_DIR}/events
python ./events $@

#!/bin/bash

set -e

# Prebuilt wheels location
export WHEELHOUSE="file:///net/san1/disk1/wheelhouse/"

# Use prebuilt packages ONLY by default
export AG_PIP_OPTS="--use-wheel --find-links=${WHEELHOUSE} --no-index"

function absdir () {
   pushd $(dirname $1) > /dev/null
   local result=$(pwd)
   popd > /dev/null
   echo ${result}
}

STRESS_DIR=$(absdir $0)
ENV_DIR=${STRESS_DIR}/env
BASE_DIR=${STRESS_DIR}/..

if [ ! -d "${ENV_DIR}" ]
then
    virtualenv --no-site-packages ${ENV_DIR}
    source ${ENV_DIR}/bin/activate
    pip install -U setuptools pip wheel ${AG_PIP_OPTS}
else
    source  ${ENV_DIR}/bin/activate
fi
export PYCURL_SSL_LIBRARY=nss
pip install -r ${BASE_DIR}/requirements.txt ${AG_PIP_OPTS}
pip install -r ${BASE_DIR}/requirements2.txt ${AG_PIP_OPTS}
pip install -e ${BASE_DIR} ${AG_PIP_OPTS}
cd ${STRESS_DIR}/events
python ./events $@

Fix ptests broken in previous commit.
Fix ptests broken in previous commit.

Change-Id: Iaa28d6e92d8f3a3ccf6ec9aba92c8a6bb358394b
Reviewed-on: https://gerrit.franz.com:9080/5916
Reviewed-by: Tadeusz Sznuk <4402abb98f9559cbfb6d73029f928227b498069b@franz.com>
Reviewed-by: Ahmon Dancy <8f7d8ce2c6797410ae95fecd4c30801ee9f760ac@franz.com>
Tested-by: Ahmon Dancy <8f7d8ce2c6797410ae95fecd4c30801ee9f760ac@franz.com>
