Closes #4909: Check for contents in local_requirements.txt before calling pip

This commit is contained in:
Jeremy Stretch 2020-07-27 12:01:21 -04:00
parent 2972993a84
commit 9f363f493b
1 changed files with 3 additions and 2 deletions

View File

@ -40,11 +40,12 @@ echo "Installing core dependencies ($COMMAND)..."
eval $COMMAND || exit 1
# Install optional packages (if any)
if [ -f "local_requirements.txt" ]
then
if [ -s "local_requirements.txt" ]; then
COMMAND="pip3 install -r local_requirements.txt"
echo "Installing local dependencies ($COMMAND)..."
eval $COMMAND || exit 1
elif [ -f "local_requirements.txt" ]; then
echo "Skipping local dependencies (local_requirements.txt is empty)"
else
echo "Skipping local dependencies (local_requirements.txt not found)"
fi