提交 b4aeec81 编写于 作者: C Cleber Rosa

Makefile: make install-requirements[-selftests] best effort

The install requirements targets are really best effort. PIP can fail
in so many ways. So, let's not attempt to detect if the target ran
successfully or not. This is important because it may prevent other
chained command lines and targets to attempted an execution.

Also attempt to install Python 2.6 requirements early, since they are
simpler than the other requirements and pretty much basic back ported
libraries.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 76374f64
......@@ -105,14 +105,12 @@ clean:
do AVOCADO_DIRNAME=$(AVOCADO_DIRNAME) make -C $$MAKEFILE unlink &>/dev/null && echo ">> UNLINK $$MAKEFILE" || echo ">> SKIP $$MAKEFILE";\
done
install-requirements-all: install-requirements install-requirements-selftests
install-requirements:
grep -v '^#' requirements.txt | xargs -n 1 pip install --upgrade
if $$(python -V 2>&1 | grep 2.6 -q); then grep -v '^#' requirements-python26.txt | xargs -n 1 pip install --upgrade; fi
- if $$(python -V 2>&1 | grep 2.6 -q); then grep -v '^#' requirements-python26.txt | xargs -n 1 pip install --upgrade; fi
- grep -v '^#' requirements.txt | xargs -n 1 pip install --upgrade
install-requirements-selftests:
grep -v '^#' requirements-selftests.txt | xargs -n 1 pip install --upgrade
install-requirements-selftests: install-requirements
- grep -v '^#' requirements-selftests.txt | xargs -n 1 pip install --upgrade
check: clean check_cyclical modules_boundaries
rm -rf /var/tmp/avocado*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册