summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@isc.org>2019-07-26 09:51:32 +0200
committerMichal Nowikowski <godfryd@isc.org>2019-07-30 10:45:13 +0200
commit6717a81787cb4519ebab884f1957820630f21aac (patch)
treec89cca71fbb15f38d64e9fec43981579f389cbdc /hammer.py
parentfixed building docs on some systems (diff)
downloadkea-6717a81787cb4519ebab884f1957820630f21aac.tar.xz
kea-6717a81787cb4519ebab884f1957820630f21aac.zip
improved detecting sphinx and pdflatex in configure.ac, improved building docs in hammer
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/hammer.py b/hammer.py
index adaf9778f5..68bad0cc2a 100755
--- a/hammer.py
+++ b/hammer.py
@@ -1068,7 +1068,7 @@ def prepare_system_local(features, check_times):
packages.extend(['rpm-build', 'python2-devel'])
if 'docs' in features:
- packages.extend(['python36-virtualenv'])
+ packages.extend(['python-virtualenv'])
if 'mysql' in features:
packages.extend(['mariadb', 'mariadb-server', 'mariadb-devel'])
@@ -1085,7 +1085,7 @@ def prepare_system_local(features, check_times):
install_pkgs(packages, env=env, check_times=check_times)
if 'docs' in features:
- execute('virtualenv-3 ~/venv',
+ execute('virtualenv ~/venv',
env=env, timeout=60, check_times=check_times)
execute('~/venv/bin/pip install sphinx sphinx-rtd-theme',
env=env, timeout=120, check_times=check_times)
@@ -1224,7 +1224,11 @@ def prepare_system_local(features, check_times):
packages.append('mariadb-server')
if 'pgsql' in features:
- packages.extend(['postgresql-client', 'libpq-dev', 'postgresql-all'])
+ packages.extend(['postgresql-client', 'libpq-dev'])
+ if revision == '8':
+ packages.extend(['postgresql', 'postgresql-client'])
+ else:
+ packages.append('postgresql-all')
if 'radius' in features:
packages.extend(['git'])
@@ -1360,7 +1364,6 @@ def _build_binaries_and_run_ut(system, revision, features, tarball_path, env, ch
cmd += ' --with-sphinx=$HOME/venv/bin/sphinx-build'
elif system == 'centos' and revision == '7':
cmd += ' --with-sphinx=$HOME/venv/bin/sphinx-build'
- cmd += ' --with-pdflatex=no'
if 'radius' in features:
cmd += ' --with-freeradius=/usr/local'
if 'shell' in features: