From 3b188e184dc679e04975fbc2b572287fdcff0cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 12 Jan 2023 18:20:31 +0100 Subject: dcoppython: Get the path to the python site directory from the python configuration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- dcoppython/configure.in.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dcoppython/configure.in.in') 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 -- cgit v1.2.1