Added more missing dependencies

This commit is contained in:
Adam J. Stewart 2016-08-23 15:45:04 -05:00
parent fda7fcd73d
commit c36f13e44d
3 changed files with 28 additions and 10 deletions

View File

@ -27,25 +27,39 @@ for dep in "$@"; do
spack_package=py-flake8 spack_package=py-flake8
pip_package=flake8 pip_package=flake8
;; ;;
git)
spack_package=git
;;
hg) hg)
spack_package=py-mercurial spack_package=py-mercurial
pip_package=mercurial pip_package=mercurial
;; ;;
svn)
spack_package=subversion
;;
*) *)
spack_package=$dep spack_package=$dep
pip_package=$dep pip_package=$dep
;; ;;
esac esac
cat << EOF echo "ERROR: $dep is required to run this script."
ERROR: $dep is required to run this script. echo
if [[ $spack_package ]]; then
echo "To install with Spack, run:"
echo " $ spack install $spack_package"
fi
if [[ $pip_package ]]; then
echo "To install with pip, run:"
echo " $ pip install $pip_package"
fi
if [[ $spack_package || $pip_package ]]; then
echo "Then add the bin directory to your PATH."
fi
To install with Spack, run:
$ spack install $spack_package
or, to install with pip, run:
$ pip install $pip_package
Then add the bin directory to your PATH.
EOF
exit 1 exit 1
fi fi
done done

View File

@ -9,7 +9,7 @@
# run-doc-tests # run-doc-tests
# #
# Notes: # Notes:
# Requires sphinx and mercurial. # Requires sphinx, git, mercurial, and subversion.
# #
QA_DIR="$(dirname "$0")" QA_DIR="$(dirname "$0")"
@ -20,7 +20,9 @@ DOC_DIR="$SPACK_ROOT/lib/spack/docs"
deps=( deps=(
sphinx-apidoc sphinx-apidoc
sphinx-build sphinx-build
git
hg hg
svn
) )
# Check for dependencies # Check for dependencies

View File

@ -11,7 +11,7 @@
# to only run these tests. # to only run these tests.
# #
# Notes: # Notes:
# Requires coverage. # Requires coverage, git, mercurial, and subversion.
# #
QA_DIR="$(dirname "$0")" QA_DIR="$(dirname "$0")"
@ -20,7 +20,9 @@ SPACK_ROOT="$QA_DIR/../../.."
# Array of dependencies # Array of dependencies
deps=( deps=(
coverage coverage
git
hg hg
svn
) )
# Check for dependencies # Check for dependencies