diff --git a/documentation/Makefile b/documentation/Makefile index 3c4aed409..3f9d7de7a 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -42,8 +42,8 @@ BKR_PATH_INJECTED = $(bkr_path_injected) # You can set these variables from the command line. SPHINXOPTS = -SPHINXBUILD := $(python_command) -c '__requires__ = [$(SPHINXREQUIRES)]; import pkg_resources; \ - import bkr; bkr.__path__ = [$(BKR_PATH_INJECTED)]; \ +SPHINXBUILD := $(python_command) -V; $(python_command) -m pip freeze; $(python_command) -c '__requires__ = [$(SPHINXREQUIRES)]; import pkg_resources; \ + import six; import bkr; bkr.__path__ = [$(BKR_PATH_INJECTED)]; \ exec(open("$(SPHINXBUILD)").read())' PAPER = BUILDDIR = _build