2 SPDX-FileCopyrightText: 2020 Philippe Proulx <eeppeliteloop@gmail.com>
3 SPDX-License-Identifier: CC-BY-SA-4.0
5 .. include:: common.rst
11 Linux distributions typically provide the Babeltrace |~| 2 Python
12 bindings as the ``python3-bt2`` package.
14 Build and install from source
15 -----------------------------
17 `build Babeltrace 2 from source <https://babeltrace.org/#bt2-build-from-src>`_,
18 specify the ``--enable-python-bindings`` option at configuration time,
23 $ ./configure --enable-python-bindings
25 If you also need the Babeltrace |~| 2 library (libbabeltrace2) to
26 load Python plugins, specify the ``--enable-python-plugins`` option
27 at configuration time:
31 $ ./configure --enable-python-bindings --enable-python-plugins
34 :bt2link:`README <https://github.com/efficios/babeltrace/blob/stable-@ver@/README.adoc>`
35 for build-time requirements and detailed build instructions.
39 The Babeltrace |~| 2 Python bindings only work with Python |~| 3.