]> arthur.barton.de Git - bup.git/blobdiff - dev/prep-for-macos-build
Drop vestigial compat.range
[bup.git] / dev / prep-for-macos-build
index d79fd043abc45a0354e8fa60c6943b05907d7645..a136247ee87f868d1da60e207303da258442473d 100755 (executable)
@@ -4,15 +4,16 @@ set -exu
 
 usage()
 {
-    echo "Usage: prep-for-macos-build [python2|python3]"
+    echo "Usage: prep-for-macos-build [python3]"
 }
 
-pyver="${1:-python2}"
+pyver="${1:-python3}"
 
-/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.
@@ -20,8 +21,10 @@ brew link --force readline
 # "brew unlink readline" will undo this hack
 
 case "$pyver" in
-    python2) ;;
-    python3) brew install python ;;
+    python3)
+        brew install python
+        pip3 install --user pytest pytest-xdist
+        ;;
     *)
         usage 1>&2
         exit 2