Allow custom install location for python bindings

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-18 00:19:47 +09:00
parent c470ac7b00
commit a23ab00686
1 changed files with 3 additions and 2 deletions

View File

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