From a79932c9fd0aa091e1702dbefeeeeee6934c9192 Mon Sep 17 00:00:00 2001 From: cg25 Date: Sun, 12 Apr 2009 10:54:12 +0000 Subject: [PATCH] optionally set specific installation parameters in makefile for python bindings --- bindings/python/Makefile.am | 4 ++-- configure.in | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index e0c6267cd..9b7aa27d8 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -4,10 +4,10 @@ all-local: $(PYTHON) setup.py build install-exec-local: - $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) + $(PYTHON) setup.py install @PYTHON_INSTALL_PARAMS@ uninstall-local: - rm -rf $(DESTDIR)$(libdir)/python*/site-packages/*libtorrent* + rm -rf $(DESTDIR)$(libdir)/python*/*-packages/*libtorrent* clean-local: $(PYTHON) setup.py clean --all diff --git a/configure.in b/configure.in index fd0e488e7..62ff1a4ed 100644 --- a/configure.in +++ b/configure.in @@ -342,6 +342,12 @@ case "$ac_python_binding" in ;; esac +dnl Use possibly specific python install params +if [[ "x$PYTHON_INSTALL_PARAMS" == "x" ]]; then + PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)' +fi +AC_SUBST(PYTHON_INSTALL_PARAMS) + dnl Check whether the examples should be build AC_ARG_ENABLE( [examples],