#!/bin/sh

set -e

if [ -e /etc/profile.d/proxy.sh ]; then
    . /etc/profile.d/proxy.sh || true
fi

ENV/bin/pip install --use-mirrors --find-links https://launchpad.net/swift/icehouse/ -r frozen.txt && exit 0 || true

rm -rf ENV
if [ -e "`which virtualenv2`" ]; then
    virtualenv2 ENV
else
    virtualenv ENV
fi
ENV/bin/pip install --find-links https://launchpad.net/swift/icehouse/ -r frozen.txt
