diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-02-05 23:05:28 -0800 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-02-05 23:05:28 -0800 |
commit | c53dc315f317df1b37715938b3703737d1748a27 (patch) | |
tree | a01cd43ab918c1fb25abcb8e4b90305bd5fc7c48 /jjb/yardstick | |
parent | 7773040b9d9141075085fad70ffc188776afd7c7 (diff) |
yardstick: install python3-dev so we can build libraries
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 <ross.b.brattain@intel.com>
Diffstat (limited to 'jjb/yardstick')
-rw-r--r-- | jjb/yardstick/yardstick-project-jobs.yml | 2 |
1 files changed, 2 insertions, 0 deletions
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 |