[PATCH v5 25/25] python: add 'make develop' target

John Snow posted 25 patches 4 years, 11 months ago
Maintainers: Cleber Rosa <crosa@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Fam Zheng <fam@euphon.net>, "Alex Bennée" <alex.bennee@linaro.org>, Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>, John Snow <jsnow@redhat.com>, "Philippe Mathieu-Daudé" <philmd@redhat.com>, Thomas Huth <thuth@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>
There is a newer version of this series
[PATCH v5 25/25] python: add 'make develop' target
Posted by John Snow 4 years, 11 months ago
Add a shortcut that canonizes the runes needed to get both the
linting pre-requisites (the "[devel]" part), and the editable
live-install (the "-e" part) of these python libraries.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 python/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/python/Makefile b/python/Makefile
index 47940846400..2699b77b072 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -1,4 +1,4 @@
-.PHONY: help venv venv-check check clean distclean
+.PHONY: help venv venv-check check clean distclean develop
 
 help:
 	@echo "python packaging help:"
@@ -11,8 +11,10 @@ help:
 	@echo "make venv-check: run linters using pipenv's virtual environment."
 	@echo "    Hint: If you don't know which test to run, run this one!"
 	@echo ""
+	@echo "make develop:    Install deps for 'make check', and"
+	@echo "                 the qemu libs in editable/development mode."
+	@echo ""
 	@echo "make check:      run linters using the current environment."
-	@echo "    Hint: Install deps with: 'pip install \".[devel]\"'"
 	@echo ""
 	@echo "make clean:      remove build output."
 	@echo ""
@@ -27,6 +29,9 @@ venv: .venv
 venv-check: venv
 	@pipenv run make check
 
+develop:
+	pip3 install -e .[devel]
+
 check:
 	@pytest
 
-- 
2.29.2