Add dependencies for paramiko 2.0
Paramiko version 2.0 has been released. It now uses the Python library cryptography. Installing this requires additional system packages. This commit adds in the appropriate packages required by cryptography based on its documentation [1]. An alternative approach would have been to constrain the version of Paramiko however the project describes the 1.x versions as relying on insecure dependencies [2]. The apt packages autoconf and g++ are removed because they are dependencies of build-essential. [1] https://cryptography.io/en/latest/installation/ [2] http://www.paramiko.org/installing.html Change-Id: Ia7e0d64214cfd5412ec236ee4bdd6a076821d258
This commit is contained in:
parent
4e8596b429
commit
1b4550b0b8
@ -43,11 +43,11 @@ ssh_key_create
|
||||
|
||||
# Install the base packages
|
||||
if [[ $HOST_DISTRO =~ ^(Ubuntu|Debian) ]]; then
|
||||
apt-get update && apt-get -y install git python-all python-dev curl autoconf g++ python2.7-dev < /dev/null
|
||||
apt-get update && apt-get -y install git python-all python-dev curl python2.7-dev build-essential libssl-dev libffi-dev < /dev/null
|
||||
elif [[ $HOST_DISTRO =~ ^(CentOS|Red Hat) ]]; then
|
||||
yum check-update && yum -y install git python2 curl autoconf gcc-c++ python2-devel
|
||||
yum check-update && yum -y install git python2 curl autoconf gcc-c++ python2-devel gcc libffi-devel openssl-devel
|
||||
elif [[ $HOST_DISTRO =~ ^Fedora ]]; then
|
||||
dnf -y install git python curl autoconf gcc-c++ python-devel
|
||||
dnf -y install git python curl autoconf gcc-c++ python-devel gcc libffi-devel openssl-devel
|
||||
fi
|
||||
|
||||
# If the working directory exists remove it
|
||||
|
Loading…
Reference in New Issue
Block a user