unstructured/scripts/pip-compile.sh
Roman Isecke b37b4689bc
drop python3.8 (#2372)
### Description
Remove all uses of python3.8

---------

Co-authored-by: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com>
Co-authored-by: rbiseck3 <rbiseck3@users.noreply.github.com>
2024-01-09 23:37:30 +00:00

17 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
# python version must match lowest supported (3.9)
major=3
minor=9
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