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
This commit is contained in:
Khai Do 2016-07-12 11:47:09 -07:00
parent 4d495afe74
commit 5e99b853bc
2 changed files with 20 additions and 0 deletions

12
other-requirements.txt Normal file
View File

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

View File

@ -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