Commit | Line | Data |
---|---|---|
2467456d SM |
1 | .. include:: common.rst |
2 | ||
3 | Installation | |
4 | ============ | |
5 | Linux distributions | |
6 | ------------------- | |
7 | Linux distributions typically provide the Babeltrace |~| 2 Python | |
8 | bindings as the ``python3-bt2`` package. | |
9 | ||
10 | Build and install from source | |
11 | ----------------------------- | |
12 | When you | |
13 | `build Babeltrace 2 from source <https://babeltrace.org/#bt2-build-from-src>`_, | |
14 | specify the ``--enable-python-bindings`` option at configuration time, | |
15 | for example: | |
16 | ||
17 | .. code-block:: text | |
18 | ||
19 | $ ./configure --enable-python-bindings | |
20 | ||
21 | If you also need the Babeltrace |~| 2 library (libbabeltrace2) to | |
22 | load Python plugins, specify the ``--enable-python-plugins`` option | |
23 | at configuration time: | |
24 | ||
25 | .. code-block:: text | |
26 | ||
27 | $ ./configure --enable-python-bindings --enable-python-plugins | |
28 | ||
29 | See the project's | |
30 | :bt2link:`README <https://github.com/efficios/babeltrace/blob/stable-@ver@/README.adoc>` | |
31 | for build-time requirements and detailed build instructions. | |
32 | ||
33 | .. note:: | |
34 | ||
35 | The Babeltrace |~| 2 Python bindings only work with Python |~| 3. |