summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.python.am3
-rw-r--r--configure.ac8
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.python.am b/Makefile.python.am
index f158ff5df..7d30ff19c 100644
--- a/Makefile.python.am
+++ b/Makefile.python.am
@@ -28,7 +28,8 @@ install-exec-local: $(top_builddir)/ipasetup.py
--prefix "$(DESTDIR)$(prefix)" \
--single-version-externally-managed \
--record "$(DESTDIR)$(pkgpythondir)/install_files.txt" \
- --optimize 1; \
+ --optimize 1 \
+ $(PYTHON_INSTALL_EXTRA_OPTIONS); \
fi
uninstall-local:
diff --git a/configure.ac b/configure.ac
index 4d7a8469a..81f74f1e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -290,6 +290,14 @@ fi
AC_SUBST([IPAPLATFORM])
AC_MSG_RESULT([${IPAPLATFORM}])
+if test "x${IPAPLATFORM}" == "xdebian"; then
+ # see https://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tools.html
+ PYTHON_INSTALL_EXTRA_OPTIONS="--install-layout=deb"
+else
+ PYTHON_INSTALL_EXTRA_OPTIONS=""
+fi
+AC_SUBST([PYTHON_INSTALL_EXTRA_OPTIONS])
+AC_MSG_RESULT([python setup.py install extra options ${PYTHON_INSTALL_EXTRA_OPTIONS}])
dnl ---------------------------------------------------------------------------
dnl Version information from VERSION.m4 and command line