unstructured/scripts/pip-compile.sh

15 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
# python version must match lowest supported (3.9)
major=3
minor=10
if ! python -c "import sys; assert sys.version_info.major == $major and sys.version_info.minor == $minor"; then
echo "python version not equal to expected $major.$minor: $(python --version)"
exit 1
fi
pushd ./requirements || exit
make clean
make all
popd || exit