From 5e99b853bcb2b7fbed66c35b3cc93d3064d66c58 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Tue, 12 Jul 2016 11:47:09 -0700 Subject: [PATCH] Setup required packages with bindep python-jenkins fails to build without the kerberose packages and those packages are not included in our xenial images. Use bindep to configure the required minimum set of required packages. build error: building 'kerberos' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/base64.c -o build/temp.linux-x86_64-2.7/src/base64.o sh: 1: krb5-config: not found x86_64-linux-gnu-gcc: error: sh:: No such file or directory x86_64-linux-gnu-gcc: error: 1:: No such file or directory x86_64-linux-gnu-gcc: error: krb5-config:: No such file or directory x86_64-linux-gnu-gcc: error: not: No such file or directory x86_64-linux-gnu-gcc: error: found: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for kerberos Change-Id: Iad6e10ef6ef05e0b5c6db08dbb97b2c3a3e42a30 --- other-requirements.txt | 12 ++++++++++++ tox.ini | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 other-requirements.txt diff --git a/other-requirements.txt b/other-requirements.txt new file mode 100644 index 0000000..3b41af8 --- /dev/null +++ b/other-requirements.txt @@ -0,0 +1,12 @@ +# This is a cross-platform list tracking distribution packages needed by tests; +# see http://docs.openstack.org/infra/bindep/ for additional information. +build-essential [platform:dpkg] +gcc [platform:rpm] +python-dev [platform:dpkg] +python-devel [platform:rpm] +python3-dev [platform:dpkg] +python3-devel [platform:fedora] +libssl-dev [platform:dpkg] +openssl-devel [platform:rpm] +libkrb5-dev [platform:ubuntu] +krb5-libs [platform:rpm] diff --git a/tox.ini b/tox.ini index e8b9ce4..6153060 100644 --- a/tox.ini +++ b/tox.ini @@ -33,3 +33,11 @@ commands = {posargs} ignore = E501,H301,H405,H501 show-source = True exclude = .venv,.tox,dist,doc,build,*.egg + +[testenv:bindep] +# Do not install any requirements. We want this to be fast and work even if +# system dependencies are missing, since it's used to tell you what system +# dependencies are missing! This also means that bindep must be installed +# separately, outside of the requirements files. +deps = bindep +commands = bindep test