]> arthur.barton.de Git - bup.git/blob - dev/prep-for-debianish-build
Drop vestigial compat.range
[bup.git] / dev / prep-for-debianish-build
1 #!/usr/bin/env bash
2
3 set -exuo pipefail
4
5 usage()
6 {
7     echo "Usage: prep-for-debianish-build [python3] [pyxattr|xattr]"
8 }
9
10 export DEBIAN_FRONTEND=noninteractive
11 apt-get update
12
13 common_debs='gcc make linux-libc-dev git rsync eatmydata acl attr par2'
14 common_debs="$common_debs duplicity rdiff-backup rsnapshot dosfstools kmod"
15 common_debs="$common_debs pkg-config libreadline-dev libacl1-dev"
16
17 pyver="${1:-python3}"
18 xattr="${2:-pyxattr}"
19
20 # dosfstools: for vfat for the (root) tests
21
22 case "$pyver" in
23     python3)
24         apt-get install -y \
25                 $common_debs \
26                 python3-dev python3-distutils python3-fuse \
27                 python3-"$xattr" python3-tornado python3-pytest \
28                 python3-pytest-xdist pylint3
29         ;;
30     *)
31         usage 1>&2
32         exit 2
33         ;;
34 esac