dcoppython: Get the path to the python site directory from the python configuration.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/12/head
Slávek Banko 1 year ago
parent 2b9d763da3
commit 3b188e184d
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -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

@ -1,4 +1,3 @@
pyt_DATA = pydcop.py
pytdir = $(PYTHONMODDIR)/site-packages
pytdir = $(PYTHON_SITE)

@ -13,13 +13,10 @@ marshal_funcs_doc.html: $(srcdir)/marshal_funcs_doc.xsl marshal_funcs_doc.xml
INCLUDES = $(PYTHONINC) $(all_includes)
pythlib_LTLIBRARIES = pcop.la
pythlibdir = $(PYTHONMODDIR)/site-packages
pythlibdir = $(PYTHON_SITE)
pcop_la_SOURCES = pcop.cpp marshaller.cpp importedmodules.cpp
pcop_la_LDFLAGS = $(all_libraries) -module -avoid-version
pcop_la_LIBADD = -lDCOP -ltdecore $(LIB_TQT) $(LIBPYTHON)
noinst_HEADERS = pcop.h marshaller.h marshal_funcs.h importedmodules.h

Loading…
Cancel
Save