File: installation.rst

package info (click to toggle)
babeltrace2 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,660 kB
  • sloc: cpp: 106,162; ansic: 78,276; python: 27,115; sh: 9,053; makefile: 1,807; xml: 46
file content (39 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
..
   SPDX-FileCopyrightText: 2020 Philippe Proulx <eeppeliteloop@gmail.com>
   SPDX-License-Identifier: CC-BY-SA-4.0

.. include:: common.rst

Installation
============
Linux distributions
-------------------
Linux distributions typically provide the Babeltrace |~| 2 Python
bindings as the ``python3-bt2`` package.

Build and install from source
-----------------------------
When you
`build Babeltrace 2 from source <https://babeltrace.org/#bt2-build-from-src>`_,
specify the ``--enable-python-bindings`` option at configuration time,
for example:

.. code-block:: text

   $ ./configure --enable-python-bindings

If you also need the Babeltrace |~| 2 library (libbabeltrace2) to
load Python plugins, specify the ``--enable-python-plugins`` option
at configuration time:

.. code-block:: text

   $ ./configure --enable-python-bindings --enable-python-plugins

See the project's
:bt2link:`README <https://github.com/efficios/babeltrace/blob/stable-@ver@/README.adoc>`
for build-time requirements and detailed build instructions.

.. note::

   The Babeltrace |~| 2 Python bindings only work with Python |~| 3.