<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY dbus-python-download-http "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-&dbus-python-version;.tar.gz">
  <!ENTITY dbus-python-download-ftp  " ">
  <!ENTITY dbus-python-md5sum        "b09cd2d1a057cc432ce944de3fc06bf7">
  <!ENTITY dbus-python-size          "592 KB">
  <!ENTITY dbus-python-buildsize     "11 MB">
  <!ENTITY dbus-python-time          "0.3 SBU">
]>

  <!-- Begin D-Bus Python -->
  <sect2 id="dbus-python" xreflabel="D-Bus Python-&dbus-python-version;">
    <title>D-Bus Python</title>

    <indexterm zone="dbus-python">
      <primary sortas="a-dbus-python">dbus-python</primary>
    </indexterm>

    <sect3 role="package">
      <title>Introduction to D-Bus Python Module</title>

      <para>
        <application>D-Bus Python</application> provides
        <application>Python</application> bindings to the
        <application>D-Bus</application>.
      </para>

      &lfs77_checked;

      <bridgehead renderas="sect4">Package Information</bridgehead>
      <itemizedlist spacing="compact">
        <listitem>
          <para>
            Download (HTTP): <ulink url="&dbus-python-download-http;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download (FTP): <ulink url="&dbus-python-download-ftp;"/>
          </para>
        </listitem>
        <listitem>
          <para>
            Download MD5 sum: &dbus-python-md5sum;
          </para>
        </listitem>
        <listitem>
          <para>
            Download size: &dbus-python-size;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated disk space required: &dbus-python-buildsize;
          </para>
        </listitem>
        <listitem>
          <para>
            Estimated build time: &dbus-python-time;
          </para>
        </listitem>
      </itemizedlist>

      <bridgehead renderas="sect4">D-Bus Python Dependencies</bridgehead>

      <bridgehead renderas="sect5">Required</bridgehead>
      <para role="required">
        <xref linkend="dbus-glib"/> and
        <xref linkend="python2"/> and/or
        <xref linkend="python3"/>
      </para>

      <bridgehead renderas="sect5">
       Optional (Required to build the API and HTML Documentation)
      </bridgehead>
      <para role="optional">
        <ulink url="http://epydoc.sourceforge.net/">Epydoc</ulink> and
        <ulink url="http://docutils.sourceforge.net/">Docutils</ulink>
      </para>

      <para condition="html" role="usernotes">User Notes:
        <ulink url="&blfs-wiki;/dbus-python"/>
      </para>
    </sect3>

    <sect3 role="installation">
      <title>Installation of D-Bus Python</title>

      <note>
        <para>
          Both <application>Python 2</application> and
          <application>Python 3</application> modules can
          be built and installed without any conflicts.
        </para>
      </note>

      <para>
        To build <application>D-Bus Python</application> as the
        <application>Python 2</application> module, run the
        following commands:
      </para>

<screen><userinput>mkdir python2 &amp;&amp;
pushd python2 &amp;&amp;
PYTHON=/usr/bin/python     \
../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
make &amp;&amp;
popd</userinput></screen>

      <para>
        To test the results, issue: <command>make -C python2 check</command>.
      </para>

      <para>
        To build <application>D-Bus Python</application> as the
        <application>Python 3</application> module, run the
        following commands:
      </para>

<screen><userinput>mkdir python3 &amp;&amp;
pushd python3 &amp;&amp;
PYTHON=/usr/bin/python3    \
../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
make &amp;&amp;
popd</userinput></screen>

      <para>
        To test the results, issue: <command>make -C python3 check</command>.
      </para>

      <para>
        To install the <application>Python 2</application> module,
        run the following command as the
        <systemitem class="username">root</systemitem> user:
      </para>

<screen role="root"><userinput>make -C python2 install</userinput></screen>

      <para>
        To install the <application>Python 3</application> module,
        run the following command as the
        <systemitem class="username">root</systemitem> user:
      </para>

<screen role="root"><userinput>make -C python3 install</userinput></screen>

    </sect3>

    <sect3 role="content">
      <title>Contents</title>

      <segmentedlist>
        <segtitle>Installed Programs</segtitle>
        <segtitle>Installed Libraries</segtitle>
        <segtitle>Installed Directories</segtitle>

        <seglistitem>
          <seg>
            None
          </seg>
          <seg>
            None
          </seg>
          <seg>
            /usr/share/doc/dbus-python-&dbus-python-version; and
            /usr/lib/python&python2-majorver;/site-packages/dbus and/or
            /usr/lib/python&python3-majorver;/site-packages/dbus
          </seg>
        </seglistitem>
      </segmentedlist>

    </sect3>

  </sect2>
  <!-- End D-Bus Python -->
