]> arthur.barton.de Git - bup.git/blobdiff - dev/prep-for-debianish-build
make: add check-py2 and check-py3 targets
[bup.git] / dev / prep-for-debianish-build
index aab8c2d02bf38a1e7e38e9b1dd576d52ee160474..0ded700114b5e5a011719cf8997f17b9db812b5e 100755 (executable)
@@ -4,29 +4,35 @@ set -exuo pipefail
 
 usage()
 {
-    echo "Usage: prep-for-debianish-build [python2|python3]"
+    echo "Usage: prep-for-debianish-build [python2|python3] [pyxattr|xattr]"
 }
 
 export DEBIAN_FRONTEND=noninteractive
 apt-get update
 
 common_debs='gcc make linux-libc-dev git rsync eatmydata acl attr par2'
-common_debs="$common_debs duplicity rdiff-backup rsnapshot"
+common_debs="$common_debs duplicity rdiff-backup rsnapshot dosfstools kmod"
+common_debs="$common_debs pkg-config libreadline-dev libacl1-dev"
 
 pyver="${1:-python2}"
+xattr="${2:-pyxattr}"
+
+# dosfstools: for vfat for the (root) tests
 
 case "$pyver" in
     python2)
         apt-get install -y \
                 $common_debs \
                 python2.7-dev python-fuse \
-                python-pyxattr python-pylibacl python-tornado
+                python-"$xattr" python-tornado python-pytest \
+                python-pytest-xdist pylint
         ;;
     python3)
         apt-get install -y \
                 $common_debs \
-                python3.7-dev python3-distutils python3-fuse \
-                python3-pyxattr python3-pylibacl python3-tornado
+                python3-dev python3-distutils python3-fuse \
+                python3-"$xattr" python3-tornado python3-pytest \
+                python3-pytest-xdist pylint3
         ;;
     *)
         usage 1>&2