Skip to content

Commit

Permalink
Allow custom install location for python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Jul 17, 2015
1 parent c470ac7 commit a23ab00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a23ab00

Please sign in to comment.