Fix make test scapy python patch issue, VPP-615
[vpp.git] / test / Makefile
index db64ad9..ef19495 100644 (file)
@@ -23,6 +23,7 @@ $(PIP_INSTALL_DONE):
 
 $(PIP_PATCH_DONE): $(PIP_INSTALL_DONE)
        @echo --- patching ---
+       @sleep 1 # Ensure python recompiles patched *.py files -> *.pyc
        for f in $(CURDIR)/patches/scapy-2.3.3/*.patch ; do \
                echo Applying patch: $$(basename $$f) ; \
                patch -p1 -d $(SCAPY_SOURCE) < $$f ; \
@@ -55,7 +56,7 @@ wipe: reset
 
 doc: verify-python-path
        @virtualenv $(PYTHON_VENV_PATH) -p python2.7
-       @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install $(PYTHON_DEPENDS) sphinx"
+       @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install $(PYTHON_DEPENDS) sphinx sphinx-rtd-theme"
        @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && make -C doc WS_ROOT=$(WS_ROOT) BR=$(BR) NO_VPP_PAPI=1 html"
 
 .PHONY: wipe-doc