]> arthur.barton.de Git - bup.git/blobdiff - dev/prep-for-macos-build
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / dev / prep-for-macos-build
index ca0ab6d9c31648d849f1db952c850d6676165892..e64ab1d029347d12675bd673a5f625da1b554896 100755 (executable)
@@ -9,10 +9,12 @@ usage()
 
 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.
@@ -22,12 +24,12 @@ brew link --force readline
 case "$pyver" in
     python2)
         easy_install-2.7 --user pip
-        /Users/anka/Library/Python/2.7/bin/pip install --user pytest
+        /Users/anka/Library/Python/2.7/bin/pip install --user pytest pytest-xdist
         ;;
     python3)
         brew install python
         easy_install --user pip
-        pip3 install --user pytest
+        pip3 install --user pytest pytest-xdist
         ;;
     *)
         usage 1>&2