[ce892ab3] | 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 |
|
---|
[d2b1e2e] | 8 | <sect1 id="python-modules" xreflabel="Python Modules">
|
---|
[ce892ab3] | 9 | <?dbhtml filename="python-modules.html" ?>
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | <title>Python Modules</title>
|
---|
| 13 |
|
---|
| 14 | <indexterm zone="python-modules">
|
---|
[d2b1e2e] | 15 | <primary sortas="a-Python-Modules">Python Modules</primary>
|
---|
[ce892ab3] | 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <sect2 role="package">
|
---|
| 19 | <title>Introduction to Python Modules</title>
|
---|
| 20 |
|
---|
[66b546a] | 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>
|
---|
[ce892ab3] | 26 |
|
---|
[8c2cfcf] | 27 | <important>
|
---|
| 28 | <para>
|
---|
| 29 | In BLFS, we normally build and install Python 3 modules with
|
---|
| 30 | <command>pip3</command>. Please take care that the
|
---|
| 31 | <command>pip3 install</command> commands in the book should be
|
---|
| 32 | run as &root; unless it's for a Python virtual environment. Running
|
---|
[7777643] | 33 | <command>pip3 install</command> as a non-&root; user may seem to
|
---|
[1bd1f767] | 34 | work fine, but it will cause the installed module to be inaccessible by
|
---|
[8c2cfcf] | 35 | other users.
|
---|
| 36 | </para>
|
---|
| 37 | <para>
|
---|
| 38 | <command>pip3 install</command> will not reinstall an already
|
---|
| 39 | installed module by default. For using the
|
---|
| 40 | <command>pip3 install</command> command to upgrade a module (for
|
---|
[7777643] | 41 | example, from meson-0.61.3 to meson-0.62.0), insert
|
---|
| 42 | <parameter>--upgrade</parameter> into the command line. If it's really
|
---|
[8c2cfcf] | 43 | necessary to downgrade a module or reinstall the same version for
|
---|
[7777643] | 44 | some reason, insert <parameter>--force-reinstall</parameter> into
|
---|
[8c2cfcf] | 45 | the command line.
|
---|
| 46 | </para>
|
---|
| 47 | </important>
|
---|
| 48 |
|
---|
[ce892ab3] | 49 | <itemizedlist spacing="compact">
|
---|
[3ef383c] | 50 | <!--
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | <xref linkend="pythonhosted"/>
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | -->
|
---|
[141ee0a5] | 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | <xref linkend="asciidoc"/>
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
[7b459c22] | 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | <xref linkend="cython"/>
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
[ae96c4b] | 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | <xref linkend="dbus-python"/>
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
[cc1c942] | 72 | <!-- <listitem>
|
---|
[14c0be2f] | 73 | <para>
|
---|
| 74 | <xref linkend="decorator"/>
|
---|
| 75 | </para>
|
---|
| 76 | </listitem>
|
---|
[cc1c942] | 77 | -->
|
---|
[93883ec] | 78 | <listitem>
|
---|
[22f9c48] | 79 | <para>
|
---|
[d3ea9e8] | 80 | <xref linkend="docutils"/>
|
---|
[8558044] | 81 | </para>
|
---|
[22f9c48] | 82 | </listitem>
|
---|
[622cc86e] | 83 | <listitem>
|
---|
| 84 | <para>
|
---|
| 85 | <xref linkend="doxypypy"/>
|
---|
| 86 | </para>
|
---|
| 87 | </listitem>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>
|
---|
| 90 | <xref linkend="doxyqml"/>
|
---|
| 91 | </para>
|
---|
| 92 | </listitem>
|
---|
[8828c760] | 93 | <listitem>
|
---|
| 94 | <para>
|
---|
| 95 | <xref linkend="gi-docgen"/>
|
---|
| 96 | </para>
|
---|
| 97 | </listitem>
|
---|
[8c5e6ec] | 98 | <listitem>
|
---|
| 99 | <para>
|
---|
| 100 | <xref linkend="packaging"/>
|
---|
| 101 | </para>
|
---|
| 102 | </listitem>
|
---|
[3aee187] | 103 | <listitem>
|
---|
| 104 | <para>
|
---|
| 105 | <xref linkend="py3c"/>
|
---|
| 106 | </para>
|
---|
| 107 | </listitem>
|
---|
[ce892ab3] | 108 | <listitem>
|
---|
[66b546a] | 109 | <para>
|
---|
[d3ea9e8] | 110 | <xref linkend="pyatspi2"/>
|
---|
| 111 | </para>
|
---|
[ce892ab3] | 112 | </listitem>
|
---|
[a73f7b02] | 113 | <listitem>
|
---|
| 114 | <para>
|
---|
| 115 | <xref linkend="pycairo"/>
|
---|
| 116 | </para>
|
---|
| 117 | </listitem>
|
---|
[0c2e5325] | 118 | <listitem>
|
---|
| 119 | <para>
|
---|
| 120 | <xref linkend="pycairo2"/>
|
---|
| 121 | </para>
|
---|
| 122 | </listitem>
|
---|
[82eddd4] | 123 | <listitem>
|
---|
| 124 | <para>
|
---|
[ceafde50] | 125 | <xref linkend="pycryptodome"/>
|
---|
[82eddd4] | 126 | </para>
|
---|
| 127 | </listitem>
|
---|
[10092cde] | 128 | <listitem>
|
---|
| 129 | <para>
|
---|
| 130 | <xref linkend="python-dbusmock"/>
|
---|
| 131 | </para>
|
---|
| 132 | </listitem>
|
---|
[07f61e4] | 133 | <listitem>
|
---|
| 134 | <para>
|
---|
| 135 | <xref linkend="pygments"/>
|
---|
| 136 | </para>
|
---|
| 137 | </listitem>
|
---|
[f4472d1] | 138 | <listitem>
|
---|
[66b546a] | 139 | <para>
|
---|
| 140 | <xref linkend="pygobject2"/>
|
---|
| 141 | </para>
|
---|
[ce892ab3] | 142 | </listitem>
|
---|
| 143 | <listitem>
|
---|
[66b546a] | 144 | <para>
|
---|
| 145 | <xref linkend="pygobject3"/>
|
---|
| 146 | </para>
|
---|
[ce892ab3] | 147 | </listitem>
|
---|
[968dece] | 148 | <listitem>
|
---|
[66b546a] | 149 | <para>
|
---|
| 150 | <xref linkend="pygtk"/>
|
---|
| 151 | </para>
|
---|
[968dece] | 152 | </listitem>
|
---|
[d938ca94] | 153 | <listitem>
|
---|
| 154 | <para>
|
---|
| 155 | <xref linkend="pyxdg"/>
|
---|
| 156 | </para>
|
---|
| 157 | </listitem>
|
---|
[6b551e8] | 158 | <!-- <listitem>
|
---|
[04dc524d] | 159 | <para>
|
---|
| 160 | <xref linkend="funcsigs"/>
|
---|
| 161 | </para>
|
---|
| 162 | </listitem>
|
---|
[cc1c942] | 163 | -->
|
---|
| 164 | <!-- <listitem>
|
---|
[22f9c48] | 165 | <para>
|
---|
| 166 | <xref linkend="Beaker"/>
|
---|
| 167 | </para>
|
---|
[08093b3] | 168 | </listitem>
|
---|
[cc1c942] | 169 | -->
|
---|
[cd964c8] | 170 | <listitem>
|
---|
| 171 | <para>
|
---|
| 172 | <xref linkend="libxml2py2"/>
|
---|
| 173 | </para>
|
---|
| 174 | </listitem>
|
---|
[7d35ee59] | 175 | <listitem>
|
---|
[23e36d1] | 176 | <para>
|
---|
| 177 | <xref linkend="lxml"/>
|
---|
| 178 | </para>
|
---|
| 179 | </listitem>
|
---|
[fde1abe] | 180 | <listitem revision="sysv">
|
---|
[22f9c48] | 181 | <para>
|
---|
| 182 | <xref linkend="MarkupSafe"/>
|
---|
| 183 | </para>
|
---|
| 184 | </listitem>
|
---|
[fde1abe] | 185 | <listitem revision="sysv">
|
---|
[22f9c48] | 186 | <para>
|
---|
| 187 | <xref linkend="Jinja2"/>
|
---|
| 188 | </para>
|
---|
| 189 | </listitem>
|
---|
[0499056] | 190 | <listitem>
|
---|
[22f9c48] | 191 | <para>
|
---|
| 192 | <xref linkend="Mako"/>
|
---|
| 193 | </para>
|
---|
| 194 | </listitem>
|
---|
[6e98a080] | 195 | <listitem>
|
---|
| 196 | <para>
|
---|
| 197 | <xref linkend="pyparsing"/>
|
---|
| 198 | </para>
|
---|
| 199 | </listitem>
|
---|
[0cf85fa] | 200 | <listitem>
|
---|
[14c0be2f] | 201 | <para>
|
---|
[0cf85fa] | 202 | <xref linkend="pytest"/>
|
---|
[14c0be2f] | 203 | </para>
|
---|
| 204 | </listitem>
|
---|
[a8b202a] | 205 | <listitem>
|
---|
| 206 | <para>
|
---|
| 207 | <xref linkend="recommonmark"/>
|
---|
| 208 | </para>
|
---|
| 209 | </listitem>
|
---|
[2dfb0a58] | 210 | <listitem>
|
---|
| 211 | <para>
|
---|
| 212 | <xref linkend="requests"/>
|
---|
| 213 | </para>
|
---|
| 214 | </listitem>
|
---|
[7d35ee59] | 215 | <listitem>
|
---|
| 216 | <para>
|
---|
| 217 | <xref linkend="scour"/>
|
---|
| 218 | </para>
|
---|
| 219 | </listitem>
|
---|
[505c46cc] | 220 | <listitem>
|
---|
| 221 | <para>
|
---|
| 222 | <xref linkend="six"/>
|
---|
| 223 | </para>
|
---|
| 224 | </listitem>
|
---|
[0cf85fa] | 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | <xref linkend="sphinx"/>
|
---|
| 228 | </para>
|
---|
| 229 | </listitem>
|
---|
[6e86a83] | 230 | <listitem>
|
---|
| 231 | <para>
|
---|
| 232 | <xref linkend="sphinx_rtd_theme"/>
|
---|
| 233 | </para>
|
---|
| 234 | </listitem>
|
---|
[731bf37a] | 235 | <listitem>
|
---|
[22f9c48] | 236 | <para>
|
---|
| 237 | <xref linkend="PyYAML"/>
|
---|
| 238 | </para>
|
---|
| 239 | </listitem>
|
---|
[ce892ab3] | 240 | </itemizedlist>
|
---|
| 241 | </sect2>
|
---|
| 242 |
|
---|
[3ef383c] | 243 | <!--
|
---|
| 244 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 245 | href="python-dependencies/pythonhosted.xml"/>
|
---|
| 246 | -->
|
---|
[141ee0a5] | 247 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 248 | href="python-modules/asciidoc.xml"/>
|
---|
[141ee0a5] | 249 |
|
---|
[7b459c22] | 250 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 251 | href="python-modules/cython.xml"/>
|
---|
[7b459c22] | 252 |
|
---|
[d2b1e2e] | 253 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 254 | href="python-modules/dbus-python.xml"/>
|
---|
[a73f7b02] | 255 |
|
---|
[cc1c942] | 256 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[14c0be2f] | 257 | href="decorator.xml"/>
|
---|
[cc1c942] | 258 | -->
|
---|
[d3ea9e8] | 259 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 260 | href="python-modules/docutils.xml"/>
|
---|
[d3ea9e8] | 261 |
|
---|
[622cc86e] | 262 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 263 | href="python-modules/doxypypy.xml"/>
|
---|
| 264 |
|
---|
| 265 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 266 | href="python-modules/doxyqml.xml"/>
|
---|
| 267 |
|
---|
[8828c760] | 268 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 269 | href="python-modules/gi-docgen.xml"/>
|
---|
| 270 |
|
---|
[8c5e6ec] | 271 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 272 | href="python-modules/packaging.xml"/>
|
---|
| 273 |
|
---|
[3aee187] | 274 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 275 | href="python-modules/py3c.xml"/>
|
---|
[3aee187] | 276 |
|
---|
[22f9c48] | 277 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 278 | href="python-modules/pyatspi2.xml"/>
|
---|
[7979906] | 279 | <!--
|
---|
[d2b1e2e] | 280 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 281 | href="py2cairo.xml"/>
|
---|
[7979906] | 282 | -->
|
---|
[d2b1e2e] | 283 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 284 | href="python-modules/pycairo.xml"/>
|
---|
[82eddd4] | 285 |
|
---|
[0c2e5325] | 286 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 287 | href="python-modules/pycairo2.xml"/>
|
---|
[0c2e5325] | 288 |
|
---|
[82eddd4] | 289 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 290 | href="python-modules/pycryptodome.xml"/>
|
---|
[a73f7b02] | 291 |
|
---|
[10092cde] | 292 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 293 | href="python-modules/python-dbusmock.xml"/>
|
---|
[10092cde] | 294 |
|
---|
[07f61e4] | 295 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 296 | href="python-modules/pygments.xml"/>
|
---|
[07f61e4] | 297 |
|
---|
[d2b1e2e] | 298 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 299 | href="python-modules/pygobject2.xml"/>
|
---|
[a73f7b02] | 300 |
|
---|
[d2b1e2e] | 301 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 302 | href="python-modules/pygobject3.xml"/>
|
---|
[a73f7b02] | 303 |
|
---|
[d2b1e2e] | 304 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 305 | href="python-modules/pygtk.xml"/>
|
---|
[f4472d1] | 306 |
|
---|
[d2b1e2e] | 307 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 308 | href="python-modules/pyxdg.xml"/>
|
---|
[d938ca94] | 309 |
|
---|
[a8b202a] | 310 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 311 | href="python-modules/recommonmark.xml"/>
|
---|
| 312 |
|
---|
[879932f] | 313 | <!--
|
---|
[22f9c48] | 314 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 315 | href="setuptools.xml"/>
|
---|
[879932f] | 316 | -->
|
---|
[22f9c48] | 317 |
|
---|
[4701264] | 318 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 319 | href="funcsigs.xml"/> -->
|
---|
[04dc524d] | 320 |
|
---|
[6b551e8] | 321 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 322 | href="beaker.xml"/>-->
|
---|
[22f9c48] | 323 |
|
---|
[cd964c8] | 324 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 325 | href="python-modules/libxml2py2.xml"/>
|
---|
[cd964c8] | 326 |
|
---|
[23e36d1] | 327 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 328 | href="python-modules/lxml.xml"/>
|
---|
[23e36d1] | 329 |
|
---|
[22f9c48] | 330 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 331 | href="python-modules/markupsafe.xml"/>
|
---|
[22f9c48] | 332 |
|
---|
| 333 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 334 | href="python-modules/jinja2.xml"/>
|
---|
[22f9c48] | 335 |
|
---|
| 336 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 337 | href="python-modules/mako.xml"/>
|
---|
[22f9c48] | 338 |
|
---|
[6e98a080] | 339 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 340 | href="python-modules/pyparsing.xml"/>
|
---|
| 341 |
|
---|
[0cf85fa] | 342 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 343 | href="python-modules/pytest.xml"/>
|
---|
[14c0be2f] | 344 |
|
---|
[22f9c48] | 345 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 346 | href="python-modules/pyyaml.xml"/>
|
---|
[22f9c48] | 347 |
|
---|
[2dfb0a58] | 348 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 349 | href="python-modules/requests.xml"/>
|
---|
| 350 |
|
---|
[7d35ee59] | 351 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 352 | href="python-modules/scour.xml"/>
|
---|
[7d35ee59] | 353 |
|
---|
[505c46cc] | 354 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 355 | href="python-modules/six.xml"/>
|
---|
[505c46cc] | 356 |
|
---|
[0cf85fa] | 357 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 358 | href="python-modules/sphinx.xml"/>
|
---|
| 359 |
|
---|
[6e86a83] | 360 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 361 | href="python-modules/sphinx_rtd_theme.xml"/>
|
---|
| 362 |
|
---|
[ce892ab3] | 363 | </sect1>
|
---|