From dfc8fbf9079709786cda9b3526cbf6050a8315dd Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Tue, 24 Jan 2017 20:40:33 +0000 Subject: [PATCH] python-brickclient: accommodate python2/3 changes Following a similar fix to pip-and-virtualenv element in Ia730850a48e2478fd5461710a9d2619408725cd8, python-brickclient is also required to be fixed to handle python3 only systems. Change-Id: I442469beb5a20074425e7059eec7f78604d6cc5a --- elements/python-brickclient/package-installs.yaml | 5 +++++ elements/python-brickclient/pkg-map | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/elements/python-brickclient/package-installs.yaml b/elements/python-brickclient/package-installs.yaml index 7e371d23e..754307f71 100644 --- a/elements/python-brickclient/package-installs.yaml +++ b/elements/python-brickclient/package-installs.yaml @@ -1,3 +1,8 @@ libssl-dev: libffi-dev: python-dev: + installtype: source + dib_python_version: 2 +python3-dev: + installtype: source + dib_python_version: 3 diff --git a/elements/python-brickclient/pkg-map b/elements/python-brickclient/pkg-map index 9f9058e19..a153c92b6 100644 --- a/elements/python-brickclient/pkg-map +++ b/elements/python-brickclient/pkg-map @@ -1,13 +1,15 @@ { "family": { "redhat": { - "python-dev": "python2-devel", + "python2-dev": "python2-devel", + "python3-dev": "python3-devel", "libssl-dev": "openssl-devel", "libffi-dev": "libffi-devel" } }, "default": { - "python-dev": "python-dev", + "python2-dev": "python2-dev", + "python3-dev": "python3-dev", "libssl-dev": "libssl-dev", "libffi-dev": "libffi-dev" }