diff options
Diffstat (limited to 'tools/pip-install-with-liberasurecode.sh')
-rwxr-xr-x | tools/pip-install-with-liberasurecode.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/pip-install-with-liberasurecode.sh b/tools/pip-install-with-liberasurecode.sh index 2be036f..7745ef8 100755 --- a/tools/pip-install-with-liberasurecode.sh +++ b/tools/pip-install-with-liberasurecode.sh @@ -3,6 +3,19 @@ if [ -z "$VIRTUAL_ENV" ]; then echo "Expected VIRTUAL_ENV to be set!" exit 1 fi + +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 + if [ -z "$LIBERASURECODE_DIR" ]; then echo "Expected LIBERASURECODE_DIR to be set!" exit 1 @@ -20,4 +33,5 @@ fi make make install popd + pip install "$@" |