diff options
author | Tomek Mrugalski <tomek@isc.org> | 2022-08-18 14:22:57 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2022-08-26 10:11:15 +0200 |
commit | 30ffb5e06fff133089ad6f413550117dc0e28545 (patch) | |
tree | e2678546f8da630c7421807783074eb554610f6f /hammer.py | |
parent | [#2471] Updated doc (diff) | |
download | kea-30ffb5e06fff133089ad6f413550117dc0e28545.tar.xz kea-30ffb5e06fff133089ad6f413550117dc0e28545.zip |
[#2534] FreeBSD 13/sphinx/python version fix
Diffstat (limited to 'hammer.py')
-rwxr-xr-x | hammer.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1778,10 +1778,16 @@ def prepare_system_local(features, check_times): packages = ['autoconf', 'automake', 'libtool', 'openssl', 'log4cplus', 'boost-libs', 'wget'] if 'docs' in features: + # FreeBSD 11 and earlier should have python 3.7 + # FreeBSD 12 seems to have python 3.8 + # FreeBSD 13 has python 3.9 if float(revision.split('.')[0]) < 12.0: packages.extend(['py37-sphinx', 'py37-sphinx_rtd_theme']) else: - packages.extend(['py38-sphinx', 'py38-sphinx_rtd_theme']) + if revision.startswith(('12')): + packages.extend(['py38-sphinx', 'py38-sphinx_rtd_theme']) + else: + packages.extend(['py39-sphinx', 'py39-sphinx_rtd_theme']) if 'mysql' in features: if revision.startswith(('11', '12')): |