[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: John Snow
Subject: [PATCH v5 25/25] python: add 'make develop' target
Date: Thu, 18 Feb 2021 14:27:33 -0500

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
        @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
+       pip3 install -e .[devel]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]