imp: install: check for pip install tool

This commit is contained in:
Simon Michael 2023-01-24 13:09:58 -10:00
parent 04a2ed2cd1
commit 64cd01d668

View File

@ -998,9 +998,9 @@ if [[ $STATUSFLAG ]] ; then
exit 0
fi
# explain the planned install method
# ensure a haskell build tool
echo
echo "Install method:"
echo "Ensuring a Haskell build tool:"
# if stack is installed, use stack
# || [[ "$FORCE_INSTALL_STACK" == "true" ]] #--force-install-stack
if has_stack ; then
@ -1026,6 +1026,15 @@ else
ensure_stack
fi
# ensure a python install tool
echo
echo "Ensuring the Python pip install tool:"
if has_cmd pip ; then
echo "$(pip --version) is installed"
else
echo "pip was not found; python-based addons will not be installed"
fi
# try installing each package that needs installing, in turn
echo
echo Installing hledger packages: