Add SPDX info to Python bindings documentation
[babeltrace.git] / doc / bindings / python / source / installation.rst
CommitLineData
2f37a969
PP
1..
2 SPDX-FileCopyrightText: 2020 Philippe Proulx <eeppeliteloop@gmail.com>
3 SPDX-License-Identifier: CC-BY-SA-4.0
4
ba64dfcc
SM
5.. include:: common.rst
6
7Installation
8============
9Linux distributions
10-------------------
11Linux distributions typically provide the Babeltrace |~| 2 Python
12bindings as the ``python3-bt2`` package.
13
14Build and install from source
15-----------------------------
16When you
17`build Babeltrace 2 from source <https://babeltrace.org/#bt2-build-from-src>`_,
18specify the ``--enable-python-bindings`` option at configuration time,
19for example:
20
21.. code-block:: text
22
23 $ ./configure --enable-python-bindings
24
25If you also need the Babeltrace |~| 2 library (libbabeltrace2) to
26load Python plugins, specify the ``--enable-python-plugins`` option
27at configuration time:
28
29.. code-block:: text
30
31 $ ./configure --enable-python-bindings --enable-python-plugins
32
33See the project's
34:bt2link:`README <https://github.com/efficios/babeltrace/blob/stable-@ver@/README.adoc>`
35for build-time requirements and detailed build instructions.
36
37.. note::
38
39 The Babeltrace |~| 2 Python bindings only work with Python |~| 3.
This page took 0.033466 seconds and 4 git commands to generate.