~powersj/charms/bundles/server-ci/bundle

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
#!/bin/bash
#
# Install packages required from pip
#
# Goal is to keep this list as small as possible and prefer
# packages from the distro. However, there are times where
# a newer package is needed.
#
set -eux

PACKAGES=(
	flake8
	launchpadlib
	nose
	pycodestyle
	pydocstyle
	pyflakes
	tox
)

if [ "$(id -u)" == "0" ]; then
   echo "This script must NOT be run as root" 1>&2
   exit 1
fi

pip install --upgrade pip
pip install --user --upgrade "${PACKAGES[@]}"
pip3 install --user pylxd==2.1.3