Skip to content
Snippets Groups Projects
Commit 71680229 authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

pip to uninstall python files

parent a4a54af3
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,12 @@ AS_IF([test "x$enable_python" != "xno"], [ ...@@ -31,6 +31,12 @@ AS_IF([test "x$enable_python" != "xno"], [
]) ])
]) ])
AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"]) AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"])
dnl Check for pip support (uninstall)
AS_IF([test -n "$PYTHON"],[
AC_CHECK_PROGS([PIP], [pip3])
AS_IF([test -z "$PIP"],[AC_MSG_WARN([pip not found - continuing without python uninstall support])])
AM_CONDITIONAL([HAVE_PIP], [test -n "$PIP"])
])
case "${host_os}" in case "${host_os}" in
"") "")
......
...@@ -10,8 +10,13 @@ all-local: pybuild.stamp ...@@ -10,8 +10,13 @@ all-local: pybuild.stamp
clean-local: clean-local:
rm -rf $(builddir)/build $(builddir)/*.so rm -rf $(builddir)/build $(builddir)/*.so
install: install-exec-local:
$(PYTHON) setup.py install $(PYTHON) setup.py install
rm -rf $(builddir)/build rm -rf $(builddir)/build
if HAVE_PIP
uninstall-local:
/usr/bin/yes | $(PIP) uninstall $(PACKAGE)
endif
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment