File: prep-for-debianish-build

package info (click to toggle)
bup 0.33.9-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,712 kB
  • sloc: python: 15,897; sh: 5,764; ansic: 2,965; pascal: 669; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash

set -exuo pipefail

usage()
{
    echo "Usage: prep-for-debianish-build [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 dosfstools kmod"
common_debs="$common_debs pkg-config libreadline-dev libacl1-dev locales"

pyver="${1:-python3}"
xattr="${2:-pyxattr}"

# dosfstools: for vfat for the (root) tests

case "$pyver" in
    python3)
        apt-get install -y \
                $common_debs \
                python3-dev python3-distutils python3-fuse \
                python3-"$xattr" python3-tornado python3-pytest \
                python3-pytest-xdist pylint
        ;;
    *)
        usage 1>&2
        exit 2
        ;;
esac