1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 |
|
---|
8 | <sect1 id="python-modules" xreflabel="Python Modules">
|
---|
9 | <?dbhtml filename="python-modules.html" ?>
|
---|
10 |
|
---|
11 |
|
---|
12 | <title>Python Modules</title>
|
---|
13 |
|
---|
14 | <indexterm zone="python-modules">
|
---|
15 | <primary sortas="a-Python-Modules">Python Modules</primary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <sect2 role="package">
|
---|
19 | <title>Introduction to Python Modules</title>
|
---|
20 |
|
---|
21 | <para>
|
---|
22 | The <application>Python</application> module packages add useful objects
|
---|
23 | to the <application>Python</application> language. Modules utilized by
|
---|
24 | packages throughout BLFS are listed here, along with their dependencies.
|
---|
25 | </para>
|
---|
26 |
|
---|
27 | <note>
|
---|
28 | <para>
|
---|
29 | If you want to run tests, several of the following modules depend on
|
---|
30 | the <option>sqlite3</option> core python module that has not been
|
---|
31 | built in LFS. It is therefore recommended to rebuild Python after
|
---|
32 | installing the recommended dependency listed in
|
---|
33 | <xref linkend="python3"/>.
|
---|
34 | </para>
|
---|
35 | </note>
|
---|
36 |
|
---|
37 | <important>
|
---|
38 | <para>
|
---|
39 | In BLFS, we normally build and install Python 3 modules with
|
---|
40 | <command>pip3</command>. Please take care that the
|
---|
41 | <command>pip3 install</command> commands in the book should be
|
---|
42 | run as &root; unless it's for a Python virtual environment. Running
|
---|
43 | <command>pip3 install</command> as a non-&root; user may seem to
|
---|
44 | work fine, but it will cause the installed module to be inaccessible by
|
---|
45 | other users.
|
---|
46 | </para>
|
---|
47 | <para>
|
---|
48 | <command>pip3 install</command> will not reinstall an already
|
---|
49 | installed module by default. For using the
|
---|
50 | <command>pip3 install</command> command to upgrade a module (for
|
---|
51 | example, from meson-0.61.3 to meson-0.62.0), insert
|
---|
52 | <parameter>--upgrade</parameter> into the command line. If it's really
|
---|
53 | necessary to downgrade a module or reinstall the same version for
|
---|
54 | some reason, insert <parameter>--force-reinstall</parameter> into
|
---|
55 | the command line.
|
---|
56 | </para>
|
---|
57 | </important>
|
---|
58 |
|
---|
59 | <itemizedlist spacing="compact">
|
---|
60 | <!--
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | <xref linkend="pythonhosted"/>
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | -->
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | <xref linkend="asciidoc"/>
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | <xref linkend="cachecontrol"/>
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para>
|
---|
79 | <xref linkend="cssselect"/>
|
---|
80 | </para>
|
---|
81 | </listitem>
|
---|
82 | <listitem>
|
---|
83 | <para>
|
---|
84 | <xref linkend="cython"/>
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | <listitem>
|
---|
88 | <para>
|
---|
89 | <xref linkend="python-dbusmock"/>
|
---|
90 | </para>
|
---|
91 | </listitem>
|
---|
92 | <listitem>
|
---|
93 | <para>
|
---|
94 | <xref linkend="dbus-python"/>
|
---|
95 | </para>
|
---|
96 | </listitem>
|
---|
97 | <listitem>
|
---|
98 | <para>
|
---|
99 | <xref linkend="docutils"/>
|
---|
100 | </para>
|
---|
101 | </listitem>
|
---|
102 | <listitem>
|
---|
103 | <para>
|
---|
104 | <xref linkend="doxypypy"/>
|
---|
105 | </para>
|
---|
106 | </listitem>
|
---|
107 | <listitem>
|
---|
108 | <para>
|
---|
109 | <xref linkend="doxyqml"/>
|
---|
110 | </para>
|
---|
111 | </listitem>
|
---|
112 | <listitem>
|
---|
113 | <para>
|
---|
114 | <xref linkend="gi-docgen"/>
|
---|
115 | </para>
|
---|
116 | </listitem>
|
---|
117 | <listitem>
|
---|
118 | <para>
|
---|
119 | <xref linkend="html5lib"/>
|
---|
120 | </para>
|
---|
121 | </listitem>
|
---|
122 | <listitem>
|
---|
123 | <para>
|
---|
124 | <xref linkend="lxml"/>
|
---|
125 | </para>
|
---|
126 | </listitem>
|
---|
127 | <listitem>
|
---|
128 | <para>
|
---|
129 | <xref linkend="Mako"/>
|
---|
130 | </para>
|
---|
131 | </listitem>
|
---|
132 | <listitem>
|
---|
133 | <para>
|
---|
134 | <xref linkend="numpy"/>
|
---|
135 | </para>
|
---|
136 | </listitem>
|
---|
137 | <listitem>
|
---|
138 | <para>
|
---|
139 | <xref linkend="packaging"/>
|
---|
140 | </para>
|
---|
141 | </listitem>
|
---|
142 | <listitem>
|
---|
143 | <para>
|
---|
144 | <xref linkend="ply"/>
|
---|
145 | </para>
|
---|
146 | </listitem>
|
---|
147 | <listitem>
|
---|
148 | <para>
|
---|
149 | <xref linkend="psutil"/>
|
---|
150 | </para>
|
---|
151 | </listitem>
|
---|
152 | <listitem>
|
---|
153 | <para>
|
---|
154 | <xref linkend="py3c"/>
|
---|
155 | </para>
|
---|
156 | </listitem>
|
---|
157 | <listitem>
|
---|
158 | <para>
|
---|
159 | <xref linkend="pyatspi2"/>
|
---|
160 | </para>
|
---|
161 | </listitem>
|
---|
162 | <!-- <listitem>
|
---|
163 | <para>
|
---|
164 | <xref linkend="pycairo2"/>
|
---|
165 | </para>
|
---|
166 | </listitem>-->
|
---|
167 | <listitem>
|
---|
168 | <para>
|
---|
169 | <xref linkend="pycairo"/>
|
---|
170 | </para>
|
---|
171 | </listitem>
|
---|
172 | <listitem>
|
---|
173 | <para>
|
---|
174 | <xref linkend="pygdbmi"/>
|
---|
175 | </para>
|
---|
176 | </listitem>
|
---|
177 | <listitem>
|
---|
178 | <para>
|
---|
179 | <xref linkend="pygments"/>
|
---|
180 | </para>
|
---|
181 | </listitem>
|
---|
182 | <!-- <listitem>
|
---|
183 | <para>
|
---|
184 | <xref linkend="pygobject2"/>
|
---|
185 | </para>
|
---|
186 | </listitem> -->
|
---|
187 | <listitem>
|
---|
188 | <para>
|
---|
189 | <xref linkend="pygobject3"/>
|
---|
190 | </para>
|
---|
191 | </listitem>
|
---|
192 | <!-- <listitem>
|
---|
193 | <para>
|
---|
194 | <xref linkend="pygtk"/>
|
---|
195 | </para>
|
---|
196 | </listitem> -->
|
---|
197 | <listitem>
|
---|
198 | <para>
|
---|
199 | <xref linkend="pyparsing"/>
|
---|
200 | </para>
|
---|
201 | </listitem>
|
---|
202 | <listitem>
|
---|
203 | <para>
|
---|
204 | <xref linkend="pyserial"/>
|
---|
205 | </para>
|
---|
206 | </listitem>
|
---|
207 | <listitem>
|
---|
208 | <para>
|
---|
209 | <xref linkend="pytest"/>
|
---|
210 | </para>
|
---|
211 | </listitem>
|
---|
212 | <listitem>
|
---|
213 | <para>
|
---|
214 | <xref linkend="pyxdg"/>
|
---|
215 | </para>
|
---|
216 | </listitem>
|
---|
217 | <listitem>
|
---|
218 | <para>
|
---|
219 | <xref linkend="PyYAML"/>
|
---|
220 | </para>
|
---|
221 | </listitem>
|
---|
222 | <listitem>
|
---|
223 | <para>
|
---|
224 | <xref linkend="recommonmark"/>
|
---|
225 | </para>
|
---|
226 | </listitem>
|
---|
227 | <listitem>
|
---|
228 | <para>
|
---|
229 | <xref linkend="requests"/>
|
---|
230 | </para>
|
---|
231 | </listitem>
|
---|
232 | <listitem>
|
---|
233 | <para>
|
---|
234 | <xref linkend="sentry-sdk"/>
|
---|
235 | </para>
|
---|
236 | </listitem>
|
---|
237 | <listitem>
|
---|
238 | <para>
|
---|
239 | <xref linkend="scour"/>
|
---|
240 | </para>
|
---|
241 | </listitem>
|
---|
242 | <listitem>
|
---|
243 | <para>
|
---|
244 | <xref linkend="six"/>
|
---|
245 | </para>
|
---|
246 | </listitem>
|
---|
247 | <listitem>
|
---|
248 | <para>
|
---|
249 | <xref linkend="sphinx"/>
|
---|
250 | </para>
|
---|
251 | </listitem>
|
---|
252 | <listitem>
|
---|
253 | <para>
|
---|
254 | <xref linkend="sphinx_rtd_theme"/>
|
---|
255 | </para>
|
---|
256 | </listitem>
|
---|
257 | </itemizedlist>
|
---|
258 | </sect2>
|
---|
259 |
|
---|
260 | <!--
|
---|
261 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
262 | href="python-dependencies/pythonhosted.xml"/>
|
---|
263 | -->
|
---|
264 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
265 | href="python-modules/asciidoc.xml"/>
|
---|
266 |
|
---|
267 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
268 | href="python-modules/cssselect.xml"/>
|
---|
269 |
|
---|
270 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
271 | href="python-modules/cachecontrol.xml"/>
|
---|
272 |
|
---|
273 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
274 | href="python-modules/cython.xml"/>
|
---|
275 |
|
---|
276 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
277 | href="python-modules/python-dbusmock.xml"/>
|
---|
278 |
|
---|
279 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
280 | href="python-modules/dbus-python.xml"/>
|
---|
281 |
|
---|
282 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
283 | href="python-modules/docutils.xml"/>
|
---|
284 |
|
---|
285 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
286 | href="python-modules/doxypypy.xml"/>
|
---|
287 |
|
---|
288 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
289 | href="python-modules/doxyqml.xml"/>
|
---|
290 |
|
---|
291 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
292 | href="python-modules/gi-docgen.xml"/>
|
---|
293 |
|
---|
294 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
295 | href="python-modules/html5lib.xml"/>
|
---|
296 |
|
---|
297 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
298 | href="python-modules/lxml.xml"/>
|
---|
299 |
|
---|
300 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
301 | href="python-modules/mako.xml"/>
|
---|
302 |
|
---|
303 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
304 | href="python-modules/numpy.xml"/>
|
---|
305 |
|
---|
306 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
307 | href="python-modules/packaging.xml"/>
|
---|
308 |
|
---|
309 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
310 | href="python-modules/ply.xml"/>
|
---|
311 |
|
---|
312 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
313 | href="python-modules/psutil.xml"/>
|
---|
314 |
|
---|
315 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
316 | href="python-modules/py3c.xml"/>
|
---|
317 |
|
---|
318 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
319 | href="python-modules/pyatspi2.xml"/>
|
---|
320 |
|
---|
321 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
322 | href="python-modules/pycairo2.xml"/>-->
|
---|
323 |
|
---|
324 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
325 | href="python-modules/pycairo.xml"/>
|
---|
326 |
|
---|
327 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
328 | href="python-modules/pygdbmi.xml"/>
|
---|
329 |
|
---|
330 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
331 | href="python-modules/pygments.xml"/>
|
---|
332 | <!--
|
---|
333 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
334 | href="python-modules/pygobject2.xml"/>
|
---|
335 | -->
|
---|
336 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
337 | href="python-modules/pygobject3.xml"/>
|
---|
338 | <!--
|
---|
339 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
340 | href="python-modules/pygtk.xml"/>
|
---|
341 | -->
|
---|
342 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
343 | href="python-modules/pyparsing.xml"/>
|
---|
344 |
|
---|
345 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
346 | href="python-modules/pyserial.xml"/>
|
---|
347 |
|
---|
348 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
349 | href="python-modules/pytest.xml"/>
|
---|
350 |
|
---|
351 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
352 | href="python-modules/pyxdg.xml"/>
|
---|
353 |
|
---|
354 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
355 | href="python-modules/pyyaml.xml"/>
|
---|
356 |
|
---|
357 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
358 | href="python-modules/recommonmark.xml"/>
|
---|
359 |
|
---|
360 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
361 | href="python-modules/requests.xml"/>
|
---|
362 |
|
---|
363 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
364 | href="python-modules/scour.xml"/>
|
---|
365 |
|
---|
366 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
367 | href="python-modules/sentry-sdk.xml"/>
|
---|
368 |
|
---|
369 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
370 | href="python-modules/six.xml"/>
|
---|
371 |
|
---|
372 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
373 | href="python-modules/sphinx.xml"/>
|
---|
374 |
|
---|
375 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
376 | href="python-modules/sphinx_rtd_theme.xml"/>
|
---|
377 |
|
---|
378 | </sect1>
|
---|