X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=doc%2Fbindings%2Fpython%2Fsource%2Finstallation.rst;fp=doc%2Fbindings%2Fpython%2Fsource%2Finstallation.rst;h=5b0412dce41979e6a0a8604719cd6ef429d13600;hp=0000000000000000000000000000000000000000;hb=ba64dfcccb1f1bd7a259dc5d563ba422b8375582;hpb=aa7407227594c8e5ebff8e1944a902760f2c9a17 diff --git a/doc/bindings/python/source/installation.rst b/doc/bindings/python/source/installation.rst new file mode 100644 index 00000000..5b0412dc --- /dev/null +++ b/doc/bindings/python/source/installation.rst @@ -0,0 +1,35 @@ +.. 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 `_, +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 ` +for build-time requirements and detailed build instructions. + +.. note:: + + The Babeltrace |~| 2 Python bindings only work with Python |~| 3.