org_lttng_ust_agent_log4j_LttngLog4jApi.h
# Python agent
-python-lttngust/lttngust/__init__.py
+python-lttngust/lttngust/version.py
python-lttngust/**/*.pyc
python-lttngust/build
python-lttngust/setup.py
AC_SUBST([LTTNG_UST_LIBRARY_VERSION], ust_lib_version)
AC_SUBST([LTTNG_UST_CTL_LIBRARY_VERSION], ust_ctl_lib_version)
+# Major soname for python-lttngust
+AC_SUBST([LTTNG_UST_LIB_SONAME_MAJOR], [ust_lib_version_current])
+
AM_CFLAGS="-Wall $URCU_CFLAGS $PTHREAD_CFLAGS"
AC_SUBST(AM_CFLAGS)
liblttng-ust-python-agent/Makefile
python-lttngust/Makefile
python-lttngust/setup.py
- python-lttngust/lttngust/__init__.py
+ python-lttngust/lttngust/version.py
tools/Makefile
tests/Makefile
tests/compile/Makefile
liblttng_ust_python_agent_la_SOURCES = lttng_ust_python.c lttng_ust_python.h
liblttng_ust_python_agent_la_LIBADD = -lc \
$(top_builddir)/liblttng-ust/liblttng-ust.la
+
+# Follow the main library soname for co-installability
+liblttng_ust_python_agent_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
INSTALLED_FILES=$(builddir)/installed_files.txt
STATIC_BINDINGS_DEPS = \
+ lttngust/__init__.py \
lttngust/agent.py \
lttngust/cmd.py \
lttngust/compat.py \
--- /dev/null
+# -*- coding: utf-8 -*-
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
+# Copyright (C) 2015 Philippe Proulx <pproulx@efficios.com>
+
+from __future__ import unicode_literals
+
+from .version import __version__
+from .version import __soname_major__
+
+# this creates the daemon threads and registers the application
+import lttngust.agent
+++ /dev/null
-# -*- coding: utf-8 -*-
-#
-# SPDX-License-Identifier: LGPL-2.1-only
-#
-# Copyright (C) 2015 Philippe Proulx <pproulx@efficios.com>
-
-from __future__ import unicode_literals
-
-# this creates the daemon threads and registers the application
-import lttngust.agent
-
-
-__version__ = '@PACKAGE_VERSION@'
import logging
import ctypes
+from .version import __soname_major__
class _Handler(logging.Handler):
- _LIB_NAME = 'liblttng-ust-python-agent.so.0'
+ _LIB_NAME = 'liblttng-ust-python-agent.so.' + __soname_major__
def __init__(self):
super(self.__class__, self).__init__(level=logging.NOTSET)
--- /dev/null
+# -*- coding: utf-8 -*-
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
+# Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
+
+__version__ = '@PACKAGE_VERSION@'
+__soname_major__ = '@LTTNG_UST_LIB_SONAME_MAJOR@'