summaryrefslogtreecommitdiffstats
path: root/dcoppython/configure.in.in
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-12 18:20:31 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-13 03:27:22 +0100
commit3b188e184dc679e04975fbc2b572287fdcff0cca (patch)
tree4d5a7a2847fd4d1ca4f7f6d42c4652d1141e0999 /dcoppython/configure.in.in
parent2b9d763da377b06b583acf042808d3a49aec086f (diff)
downloadtdebindings-3b188e184dc679e04975fbc2b572287fdcff0cca.tar.gz
tdebindings-3b188e184dc679e04975fbc2b572287fdcff0cca.zip
dcoppython: Get the path to the python site directory from the python configuration.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'dcoppython/configure.in.in')
-rw-r--r--dcoppython/configure.in.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/dcoppython/configure.in.in b/dcoppython/configure.in.in
index c4d84ea2..dddf4c64 100644
--- a/dcoppython/configure.in.in
+++ b/dcoppython/configure.in.in
@@ -10,3 +10,7 @@ AC_PATH_PROG([PYTHON],[python2])
if test -z "$PYTHON"; then
AC_PATH_PROG([PYTHON],[python])
fi
+if test -n "$PYTHON"; then
+ python_site=$($PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
+ AC_SUBST(PYTHON_SITE, $python_site)
+fi