source: general/prog/dbus-python.xml@ 452ecee

10.0 10.1 11.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 452ecee was 452ecee, checked in by Douglas R. Reno <renodr@…>, 2 years ago

dbus-python: Add optional dependency on pygobject for tests
babl: Remove now-unneeded instruction for i686 systems (tested today)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22200 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.9 KB
Line 
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
7 <!ENTITY dbus-python-download-http "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-&dbus-python-version;.tar.gz">
8 <!ENTITY dbus-python-download-ftp " ">
9 <!ENTITY dbus-python-md5sum "428b7a9e7e2d154a7ceb3e13536283e4">
10 <!ENTITY dbus-python-size "564 KB">
11 <!ENTITY dbus-python-buildsize "11 MB (both versions, with tests)">
12 <!ENTITY dbus-python-time "0.2 SBU (both versions, with tests)">
13]>
14
15 <!-- Begin D-Bus Python -->
16 <sect2 id="dbus-python" xreflabel="D-Bus Python-&dbus-python-version;">
17 <title>D-Bus Python-&dbus-python-version;</title>
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
29 <application>D-Bus</application> API interface.
30 </para>
31
32 &lfs90_checked;
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">
72 <xref linkend="dbus"/> and
73 <xref linkend="glib2"/>
74 </para>
75
76 <bridgehead renderas="sect5">Recommended</bridgehead>
77 <para role="recommended">
78 <xref linkend="python2"/> (some applications in the book require
79 the Python 2 module)
80 </para>
81
82 <bridgehead renderas="sect5">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="pygobject3"/> and
85 <ulink url="https://pypi.python.org/pypi/tap.py/">tap.py</ulink>
86 (required for some tests)
87 </para>
88
89 <bridgehead renderas="sect5">
90 Optional (Required to build the API and HTML Documentation)</bridgehead>
91 <para role="optional">
92 <xref linkend="docutils"/> and
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>
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 &amp;&amp;
120pushd python2 &amp;&amp;
121PYTHON=/usr/bin/python2 \
122../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
123make &amp;&amp;
124popd</userinput></screen>
125
126 <para>
127 To test the results, issue: <command>make -C python2 check</command>.
128 One test reports error due to dbus issues.
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 &amp;&amp;
138pushd python3 &amp;&amp;
139PYTHON=/usr/bin/python3 \
140../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
141make &amp;&amp;
142popd</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>
192 <!-- End D-Bus Python -->
Note: See TracBrowser for help on using the repository browser.