Description: Proper_way_to_call_python_pip
 On Debian Buster it gives module pip has no attribute main
 .
 mesos (1.4.2-1) unstable; urgency=medium
 .
   * New upstream release.
   * Build with -Wno-error=parentheses and -Wno-error=class-memaccess so it
     can be built for Debian Buster with GCC 8.
   * Include xfs/linux.h in xfs/utils.hpp to fix compilation on Buster.
Author: Adam Cecile <acecile@le-vert.net>

---
Origin: other
Bug: TODO
Forwarded: TODO
Reviewed-By: TODO
Last-Update: 2019-03-17

--- mesos-1.4.2.orig/src/Makefile.am
+++ mesos-1.4.2/src/Makefile.am
@@ -2063,7 +2063,7 @@ install-exec-local:
 	for whl in $(MESOS_WHLS); do					\
 	  PYTHONPATH=$(pippythonpath)					\
 	  PYTHONUSERBASE=$(DESTDIR)$(prefix)				\
-	  $(PYTHON) -c "import pip; pip.main()" install			\
+	  $(PYTHON) -m pip install			\
 	  --user $(pipinstallargs)					\
 	  --ignore-installed						\
 	  --find-links=file://$(abs_top_builddir)/src/python/dist	\
@@ -2073,7 +2073,7 @@ install-exec-local:
 uninstall-local:
 	for whl in $(MESOS_WHLS); do					\
 	  PYTHONPATH=$(DESTDIR)$(pythondir):$(pippythonpath)		\
-	  $(PYTHON) -c "import pip; pip.main()" uninstall		\
+	  $(PYTHON) -m pip uninstall		\
 	  --yes $$(echo $$whl | cut -d/ -f3 | cut -d- -f1);		\
 	done
 
