on master help sign in
[fix] re-add 'pip-exe' target - partial revert 9b48ae47

Target pip-exe is a prerequisite of the targets: - pyinstall - pyuninstall and was accidentally deleted in commit 9b48ae47. HINT: do not confuse pyinstall with penvinstall pyinstall & pyuninstall Installing into user's HOME using pip from OS, therefore the message is needed. pyenvinstall & pyenvuninstall Installing into virtualenv (./local) using pip which is provided by prerequisite 'pyenv' in the virtualenv. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit38b39ef0ae85b889b8a8401235c577c95845ed7a authorMarkus Heiser <markus.heiser@darmarit.de> dateSat 30 Jan 2021, 14:25 (6 years ago) parentd70c5a6
1 file changed+16
utils/makefile.python+16
utils/makefile.python+16
@@ -87,6 +87,22 @@ python-exe:
8787 @:
8888endif
8989
90+msg-pip-exe:
91+ @echo "\n $(PIP) is required\n\n\
92+ Make sure you have updated pip installed, grab it from\n\
93+ https://pip.pypa.io or install it from your package\n\
94+ manager. On debian based OS these requirements are\n\
95+ installed by::\n\n\
96+ sudo -H apt-get install python$(PY)-pip\n" | $(FMT)
97+
98+ifeq ($(shell which $(PIP) >/dev/null 2>&1; echo $$?), 1)
99+pip-exe: msg-pip-exe
100+ $(error The '$(PIP)' command was not found)
101+else
102+pip-exe:
103+ @:
104+endif
105+
90106# ------------------------------------------------------------------------------
91107# commands
92108# ------------------------------------------------------------------------------