source: general/prog/dbus-python.xml@ 97a1efc

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 97a1efc was 97a1efc, checked in by Bruce Dubbs <bdubbs@…>, 22 months ago

Update D-Bus Python build instructions

Nothing seems to be using the Python2 dbus-python module,
so we can remove it and use the pip3 build/install method
for the Python3 module.

  • Property mode set to 100644
File size: 5.7 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 "468874f3bf61d1b7deac98bbe2cfd8ac">
10 <!ENTITY dbus-python-size "568 KB">
11 <!ENTITY dbus-python-buildsize "7.8 MB" >
12 <!ENTITY dbus-python-time "0.1 SBU">
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 &lfs111_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 - -disable-documentation &amp;&amp;
123make &amp;&amp;
124popd</userinput></screen>
125
126 <para>
127 To test the results, issue: <command>make -C python2 check</command>.
128 Several tests report an 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 <para>
138 To build the <application>Python 3 D-Bus Python</application>
139 module, run the following command:
140 </para>
141
142<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
143
144<!--
145 <para>
146 To test the results, issue: <command>make -C python3 check</command>.
147 </para>
148
149 <para>
150 To install the <application>Python 2</application> module,
151 run the following command as the
152 <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>make -C python2 install</userinput></screen>
156-->
157 <para>
158 To install the module, run the following command as the &root; user:
159 </para>
160
161<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir dbus-python</userinput></screen>
162
163 </sect3>
164
165 <sect3 role="content">
166 <title>Contents</title>
167
168 <segmentedlist>
169 <segtitle>Installed Programs</segtitle>
170 <segtitle>Installed Libraries</segtitle>
171 <segtitle>Installed Directory</segtitle>
172
173 <seglistitem>
174 <seg>
175 None
176 </seg>
177 <seg>
178 None
179 </seg>
180 <seg>
181 /usr/lib/python&python3-majorver;/site-packages/dbus
182 </seg>
183 </seglistitem>
184 </segmentedlist>
185
186 </sect3>
187
188 </sect2>
Note: See TracBrowser for help on using the repository browser.