From a23ab00686108eff07579bb3602bdb66452fe82c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 18 Jul 2015 00:19:47 +0900 Subject: [PATCH] Allow custom install location for python bindings --- python/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/Makefile.am b/python/Makefile.am index 7a352396..46a7ef22 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -33,11 +33,12 @@ all-local: nghttp2.c $(PYTHON) setup.py build install-exec-local: - $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) + test -d $(pyexecdir) || mkdir -p $(pyexecdir) + PYTHONUSERBASE=$(DESTDIR)/$(prefix) $(PYTHON) setup.py install --user uninstall-local: rm -f $(DESTDIR)$(libdir)/python*/site-packages/nghttp2.so - rm -f $(DESTDIR)$(libdir)/python*/site-packages/python_nghttp2-*.egg-info + rm -f $(DESTDIR)$(libdir)/python*/site-packages/python_nghttp2-*.egg clean-local: $(PYTHON) setup.py clean --all