forked from premiere/premiere-libtorrent
optionally set specific installation parameters in makefile for python bindings
This commit is contained in:
parent
58b053bfdf
commit
a79932c9fd
|
@ -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
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue