]> arthur.barton.de Git - bup.git/blobdiff - dev/prep-for-freebsd-build
configure/cleanup: support python 3.10
[bup.git] / dev / prep-for-freebsd-build
index 66572a13b4dba2b9385df8b895715b66614b7c39..c95e77d21faa9e96bd137fbbf9cedd3963cbca5c 100755 (executable)
@@ -7,9 +7,6 @@ usage()
     echo "Usage: prep-for-freebsd-build [python2|python3]"
 }
 
-common_pkgs='gmake git bash rsync curl par2cmdline readline duplicity'
-common_pkgs="$common_pkgs rsnapshot"
-
 pyver="${1:-python2}"
 
 # Install build deps
@@ -19,12 +16,18 @@ pkg update
 # https://reviews.freebsd.org/D24816
 pkg install rdiff-backup || true
 
+pkgs='gmake git bash rsync curl par2cmdline readline duplicity'
+pkgs="$pkgs rsnapshot"
+
 case "$pyver" in
     python2)
-        pkg install $common_pkgs python2 py27-tornado
+        pkgs="$pkgs python2 py27-tornado py27-pip"
+        pkg install $pkgs
+        pip-2.7 install --user pytest pytest-xdist
         ;;
     python3)
-        pkg install $common_pkgs python3 py37-tornado
+        pkgs="$pkgs python38 py38-tornado py38-pytest py38-pytest-xdist"
+        pkg install $pkgs
         ;;
     *)
         usage 1>&2