unstructured/scripts/pip-compile.sh
cragwolfe bd8a74d686
chore: shell scripts default indent of 2 instead of 4 (#2287)
Given the tendency for shell scripts to easily enter into a few levels
of indentation and long line lengths, update the default to 2 spaces.
2023-12-19 07:48:21 +00:00

17 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
# python version must match lowest supported (3.8)
major=3
minor=8
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
cp requirements/build.txt docs/requirements.txt