]> arthur.barton.de Git - bup.git/blob - dev/prep-for-debianish-build
cirrus: test (incomplete) python 3 support
[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 [python2|python3]"
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"
15
16 pyver="${1:-python2}"
17
18 case "$pyver" in
19     python2)
20         apt-get install -y \
21                 $common_debs \
22                 python2.7-dev python-fuse \
23                 python-pyxattr python-pylibacl python-tornado
24         ;;
25     python3)
26         apt-get install -y \
27                 $common_debs \
28                 python3.7-dev python3-distutils python3-fuse \
29                 python3-pyxattr python3-pylibacl python3-tornado
30         ;;
31     *)
32         usage 1>&2
33         exit 2
34         ;;
35 esac