2016-12-07 03:25:04 +00:00
|
|
|
#!/bin/bash -xe
|
|
|
|
if [ -z "$VIRTUAL_ENV" ]; then
|
|
|
|
echo "Expected VIRTUAL_ENV to be set!"
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-12-07 18:46:40 +00:00
|
|
|
|
|
|
|
if [ -n "$ISAL_DIR" ]; then
|
|
|
|
if [ ! -d "$ISAL_DIR" ]; then
|
|
|
|
git clone git://github.com/01org/isa-l.git "$ISAL_DIR"
|
|
|
|
fi
|
|
|
|
pushd "$ISAL_DIR"
|
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix "$VIRTUAL_ENV"
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
|
2016-12-07 03:25:04 +00:00
|
|
|
if [ -z "$LIBERASURECODE_DIR" ]; then
|
|
|
|
echo "Expected LIBERASURECODE_DIR to be set!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if [ ! -d "$LIBERASURECODE_DIR" ]; then
|
|
|
|
git clone git://git.openstack.org/openstack/liberasurecode "$LIBERASURECODE_DIR"
|
|
|
|
fi
|
|
|
|
pushd "$LIBERASURECODE_DIR"
|
|
|
|
if [ -n "$LIBERASURECODE_REF" ]; then
|
|
|
|
git fetch origin "$LIBERASURECODE_REF"
|
|
|
|
git checkout FETCH_HEAD
|
|
|
|
fi
|
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix "$VIRTUAL_ENV"
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
popd
|
2016-12-07 18:46:40 +00:00
|
|
|
|
2016-12-07 03:25:04 +00:00
|
|
|
pip install "$@"
|