pyver="${1:-python2}"
-/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
+if ! command -v brew; then
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+fi
-brew update
-brew install par2 readline rsync pkg-config
+brew install par2 readline rsync pkg-config md5sha1sum
# This avoid's macos interference, i.e. without this it looks like we
# won't actually be able to use the readline we just installed above.
;;
python3)
brew install python
- easy_install --user pip
pip3 install --user pytest pytest-xdist
;;
*)