[d2b1e2e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY dbus-python-download-http "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-&dbus-python-version;.tar.gz">
|
---|
[d2b1e2e] | 8 | <!ENTITY dbus-python-download-ftp " ">
|
---|
[d233271a] | 9 | <!ENTITY dbus-python-md5sum "468874f3bf61d1b7deac98bbe2cfd8ac">
|
---|
| 10 | <!ENTITY dbus-python-size "568 KB">
|
---|
| 11 | <!ENTITY dbus-python-buildsize "10 MB (both versions, with tests)">
|
---|
| 12 | <!ENTITY dbus-python-time "0.3 SBU (both versions, with tests)">
|
---|
[d2b1e2e] | 13 | ]>
|
---|
[d01c61f] | 14 |
|
---|
[d2b1e2e] | 15 | <!-- Begin D-Bus Python -->
|
---|
| 16 | <sect2 id="dbus-python" xreflabel="D-Bus Python-&dbus-python-version;">
|
---|
[e3c0a2a] | 17 | <title>D-Bus Python-&dbus-python-version;</title>
|
---|
[d2b1e2e] | 18 |
|
---|
| 19 | <indexterm zone="dbus-python">
|
---|
| 20 | <primary sortas="a-dbus-python">dbus-python</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect3 role="package">
|
---|
| 24 | <title>Introduction to D-Bus Python Module</title>
|
---|
| 25 |
|
---|
| 26 | <para>
|
---|
| 27 | <application>D-Bus Python</application> provides
|
---|
| 28 | <application>Python</application> bindings to the
|
---|
[a89a5a6] | 29 | <application>D-Bus</application> API interface.
|
---|
[d2b1e2e] | 30 | </para>
|
---|
| 31 |
|
---|
[03a2986] | 32 | &lfs111_checked;
|
---|
[d2b1e2e] | 33 |
|
---|
| 34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&dbus-python-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&dbus-python-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &dbus-python-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &dbus-python-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &dbus-python-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &dbus-python-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">D-Bus Python Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 71 | <para role="required">
|
---|
[d035e0e] | 72 | <xref linkend="dbus"/> and
|
---|
[8558044] | 73 | <xref linkend="glib2"/>
|
---|
[60ddbaf] | 74 | </para>
|
---|
| 75 |
|
---|
[f0190231] | 76 | <bridgehead renderas="sect5">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
[8558044] | 78 | <xref linkend="python2"/> (some applications in the book require
|
---|
[f0190231] | 79 | the Python 2 module)
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[60ddbaf] | 82 | <bridgehead renderas="sect5">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[452ecee] | 84 | <xref linkend="pygobject3"/> and
|
---|
| 85 | <ulink url="https://pypi.python.org/pypi/tap.py/">tap.py</ulink>
|
---|
| 86 | (required for some tests)
|
---|
[d2b1e2e] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect5">
|
---|
[d035e0e] | 90 | Optional (Required to build the API and HTML Documentation)</bridgehead>
|
---|
[d2b1e2e] | 91 | <para role="optional">
|
---|
[d3ea9e8] | 92 | <xref linkend="docutils"/> and
|
---|
[f0190231] | 93 | <ulink url="http://www.sphinx-doc.org/en/master/">Sphinx</ulink> with
|
---|
| 94 | <ulink url="https://github.com/rtfd/sphinx_rtd_theme">sphinx_rtd_theme</ulink>
|
---|
[d2b1e2e] | 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <para condition="html" role="usernotes">User Notes:
|
---|
| 98 | <ulink url="&blfs-wiki;/dbus-python"/>
|
---|
| 99 | </para>
|
---|
| 100 | </sect3>
|
---|
| 101 |
|
---|
| 102 | <sect3 role="installation">
|
---|
| 103 | <title>Installation of D-Bus Python</title>
|
---|
| 104 |
|
---|
| 105 | <note>
|
---|
| 106 | <para>
|
---|
| 107 | Both <application>Python 2</application> and
|
---|
| 108 | <application>Python 3</application> modules can
|
---|
| 109 | be built and installed without any conflicts.
|
---|
| 110 | </para>
|
---|
| 111 | </note>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | To build <application>D-Bus Python</application> as the
|
---|
| 115 | <application>Python 2</application> module, run the
|
---|
| 116 | following commands:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen><userinput>mkdir python2 &&
|
---|
| 120 | pushd python2 &&
|
---|
[77deb22e] | 121 | PYTHON=/usr/bin/python2 \
|
---|
[03caff6] | 122 | ../configure --prefix=/usr --disable-documentation &&
|
---|
[d2b1e2e] | 123 | make &&
|
---|
| 124 | popd</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | To test the results, issue: <command>make -C python2 check</command>.
|
---|
[5eb179fa] | 128 | Several tests report an error due to dbus issues.
|
---|
[d2b1e2e] | 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | To build <application>D-Bus Python</application> as the
|
---|
| 133 | <application>Python 3</application> module, run the
|
---|
| 134 | following commands:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <screen><userinput>mkdir python3 &&
|
---|
| 138 | pushd python3 &&
|
---|
| 139 | PYTHON=/usr/bin/python3 \
|
---|
[7cadfea] | 140 | ../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &&
|
---|
[d2b1e2e] | 141 | make &&
|
---|
| 142 | popd</userinput></screen>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | To test the results, issue: <command>make -C python3 check</command>.
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <para>
|
---|
| 149 | To install the <application>Python 2</application> module,
|
---|
| 150 | run the following command as the
|
---|
| 151 | <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <screen role="root"><userinput>make -C python2 install</userinput></screen>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | To install the <application>Python 3</application> module,
|
---|
| 158 | run the following command as the
|
---|
| 159 | <systemitem class="username">root</systemitem> user:
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <screen role="root"><userinput>make -C python3 install</userinput></screen>
|
---|
| 163 |
|
---|
| 164 | </sect3>
|
---|
| 165 |
|
---|
| 166 | <sect3 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Programs</segtitle>
|
---|
| 171 | <segtitle>Installed Libraries</segtitle>
|
---|
| 172 | <segtitle>Installed Directories</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
| 175 | <seg>
|
---|
| 176 | None
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | None
|
---|
| 180 | </seg>
|
---|
| 181 | <seg>
|
---|
| 182 | /usr/share/doc/dbus-python-&dbus-python-version; and
|
---|
| 183 | /usr/lib/python&python2-majorver;/site-packages/dbus and/or
|
---|
| 184 | /usr/lib/python&python3-majorver;/site-packages/dbus
|
---|
| 185 | </seg>
|
---|
| 186 | </seglistitem>
|
---|
| 187 | </segmentedlist>
|
---|
| 188 |
|
---|
| 189 | </sect3>
|
---|
| 190 |
|
---|
| 191 | </sect2>
|
---|