optionally set specific installation parameters in makefile for python bindings

This commit is contained in:
cg25 2009-04-12 10:54:12 +00:00
parent 58b053bfdf
commit a79932c9fd
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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],