fix: python bindings: install on Debian python >= 3.10
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Jun 2023 22:22:37 +0000 (18:22 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 18 Oct 2023 04:45:23 +0000 (00:45 -0400)
commitd617eb920ca0200db3fee1674c7002d5ace084ba
tree867f49c03a65998ffa7e89eec1b9775dcb80a6a2
parent0f4562167f9a53bdf73ac55b0f5866d4f16afe67
fix: python bindings: install on Debian python >= 3.10

Starting with Debian's Python 3.10, the default install scheme is
'posix_local' which is a Debian specific scheme based on 'posix_prefix'
but with an added 'local' prefix. This is the default so users doing
system wide manual installations of python modules end up in
'/usr/local'. This interferes with our autotools based install which
already defaults to '/usr/local' and expects a provided prefix to be
used verbatim.

Monkeypatch sysconfig to override this scheme and use 'posix_prefix'
instead.

Change-Id: I41973f6db4966519aa1c7e74a9d1e9b5d90bf7ea
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10343
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/bindings/python/bt2/setup.py.in
This page took 0.02438 seconds and 4 git commands to generate.