Enforce python 2 for documentation build

The global goal which changed the building system has been
introduced in the rocky cycle.
Without this change, the docs target fails on modern systems
with python3. As queens is approaching Extended Maintenance,
this is probably the safest option.

Change-Id: Ib2499312df6ad0514a6d67214a84b975fb8c1425
This commit is contained in:
Luigi Toscano 2019-10-18 17:02:29 +02:00
parent 7ddb247891
commit 99a76f281e
1 changed files with 3 additions and 2 deletions

View File

@ -47,9 +47,10 @@ sitepackages = True
commands = {posargs}
[testenv:docs]
basepython = python2.7
commands =
rm -rf doc/html doc/build
rm -rf api-ref/build api-ref/html
rm -rf doc/build/html
rm -rf api-ref/build/html
rm -rf doc/source/apidoc doc/source/api
python setup.py build_sphinx
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html