From c53dc315f317df1b37715938b3703737d1748a27 Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Sun, 5 Feb 2017 23:05:28 -0800 Subject: yardstick: install python3-dev so we can build libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need python3-dev so we can install Python3 libraries like lxml Otherwise we fail with: building 'lxml.etree' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/src creating build/temp.linux-x86_64-3.5/src/lxml x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python3.5m -I/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/include/python3.5m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.5/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:85:20: fatal error: Python.h: No such file or directory compilation terminated. Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1 creating tmp cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitmtir1fki.c -o tmp/xmlXPathInitmtir1fki.o /tmp/xmlXPathInitmtir1fki.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main (int argc, char **argv) { ^ cc tmp/xmlXPathInitmtir1fki.o -lxml2 -o a.out error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 JIRA: RELENG-190 Change-Id: Icea4cff9bb9699fbd4bfc25dd201ff8bc6e6a902 Signed-off-by: Ross Brattain --- jjb/yardstick/yardstick-project-jobs.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jjb') diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml index 120e6af7b..bbfa152a2 100644 --- a/jjb/yardstick/yardstick-project-jobs.yml +++ b/jjb/yardstick/yardstick-project-jobs.yml @@ -108,6 +108,8 @@ set -o errexit set -o pipefail + sudo apt-get install -y build-essential python-dev python3-dev + echo "Running unit tests..." cd $WORKSPACE tox -- cgit 1.2.3-korg