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].

[1] https://cryptography.io/en/latest/installation/
[2] http://www.paramiko.org/installing.html

Change-Id: I702456f4a40c8d4c7e17e6db09e49785f4a64b86
(cherry picked from commit 538e0a58e5)
This commit is contained in:
Jesse Pretorius 2016-05-03 08:53:50 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 3e2f797196
commit fdb523c52e
2 changed files with 5 additions and 1 deletions

View File

@ -14,3 +14,7 @@
# TODO(odyssey4me) remove this once https://review.openstack.org/288634 has merged
# and the disk images are rebuilt and redeployed.
curl
# Requirements for Paramiko 2.0
libssl-dev
libffi-dev

View File

@ -19,7 +19,7 @@ FUNCTIONAL_TEST=${FUNCTIONAL_TEST:-true}
# prep the host
if [ "$(which apt-get)" ]; then
apt-get install -y build-essential python2.7 python-dev git-core
apt-get install -y build-essential python2.7 python-dev git-core libssl-dev libffi-dev
fi
# get pip, if necessary