Skip to content

Commit

Permalink
Support PYTHON_INSTALL_PARAMS to help with packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
TinoDidriksen committed Sep 14, 2019
1 parent a0fa2b4 commit 9eb1b9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,10 @@ AC_ARG_ENABLE([python-bindings],
[enable_python_bindings=no])
AM_CONDITIONAL([HAVE_PYTHON_BINDINGS], [test x$enable_python_bindings = xyes])

AC_ARG_VAR([PYTHON_INSTALL_PARAMS], [Parameters to pass to the Python 3 module install step])
if test "x$PYTHON_INSTALL_PARAMS" = "x"
then
PYTHON_INSTALL_PARAMS="--prefix=\$(prefix) --root=\$(DESTDIR)/"
fi

AC_OUTPUT([Makefile lttoolbox.pc lttoolbox/Makefile python/Makefile])
2 changes: 1 addition & 1 deletion python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ BUILT_SOURCES = %_wrap.cpp.cpp
$(PYTHON) setup.py build

install-exec-local:
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
$(PYTHON) setup.py install $(PYTHON_INSTALL_PARAMS)

0 comments on commit 9eb1b9d

Please sign in to comment.