[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">
|
---|
[141ee0a5] | 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | <xref linkend="asciidoc"/>
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
[7b459c22] | 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | <xref linkend="cython"/>
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
[ae96c4b] | 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | <xref linkend="dbus-python"/>
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
[cc1c942] | 65 | <!-- <listitem>
|
---|
[14c0be2f] | 66 | <para>
|
---|
| 67 | <xref linkend="decorator"/>
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
[cc1c942] | 70 | -->
|
---|
[93883ec] | 71 | <listitem>
|
---|
[22f9c48] | 72 | <para>
|
---|
[d3ea9e8] | 73 | <xref linkend="docutils"/>
|
---|
[8558044] | 74 | </para>
|
---|
[22f9c48] | 75 | </listitem>
|
---|
[622cc86e] | 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | <xref linkend="doxypypy"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>
|
---|
| 83 | <xref linkend="doxyqml"/>
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
[8828c760] | 86 | <listitem>
|
---|
| 87 | <para>
|
---|
| 88 | <xref linkend="gi-docgen"/>
|
---|
| 89 | </para>
|
---|
| 90 | </listitem>
|
---|
[8c5e6ec] | 91 | <listitem>
|
---|
| 92 | <para>
|
---|
| 93 | <xref linkend="packaging"/>
|
---|
| 94 | </para>
|
---|
| 95 | </listitem>
|
---|
[3aee187] | 96 | <listitem>
|
---|
| 97 | <para>
|
---|
| 98 | <xref linkend="py3c"/>
|
---|
| 99 | </para>
|
---|
| 100 | </listitem>
|
---|
[ce892ab3] | 101 | <listitem>
|
---|
[66b546a] | 102 | <para>
|
---|
[d3ea9e8] | 103 | <xref linkend="pyatspi2"/>
|
---|
| 104 | </para>
|
---|
[ce892ab3] | 105 | </listitem>
|
---|
[a73f7b02] | 106 | <listitem>
|
---|
| 107 | <para>
|
---|
| 108 | <xref linkend="pycairo"/>
|
---|
| 109 | </para>
|
---|
| 110 | </listitem>
|
---|
[0c2e5325] | 111 | <listitem>
|
---|
| 112 | <para>
|
---|
| 113 | <xref linkend="pycairo2"/>
|
---|
| 114 | </para>
|
---|
| 115 | </listitem>
|
---|
[82eddd4] | 116 | <listitem>
|
---|
| 117 | <para>
|
---|
[ceafde50] | 118 | <xref linkend="pycryptodome"/>
|
---|
[82eddd4] | 119 | </para>
|
---|
| 120 | </listitem>
|
---|
[10092cde] | 121 | <listitem>
|
---|
| 122 | <para>
|
---|
| 123 | <xref linkend="python-dbusmock"/>
|
---|
| 124 | </para>
|
---|
| 125 | </listitem>
|
---|
[07f61e4] | 126 | <listitem>
|
---|
| 127 | <para>
|
---|
| 128 | <xref linkend="pygments"/>
|
---|
| 129 | </para>
|
---|
| 130 | </listitem>
|
---|
[f4472d1] | 131 | <listitem>
|
---|
[66b546a] | 132 | <para>
|
---|
| 133 | <xref linkend="pygobject2"/>
|
---|
| 134 | </para>
|
---|
[ce892ab3] | 135 | </listitem>
|
---|
| 136 | <listitem>
|
---|
[66b546a] | 137 | <para>
|
---|
| 138 | <xref linkend="pygobject3"/>
|
---|
| 139 | </para>
|
---|
[ce892ab3] | 140 | </listitem>
|
---|
[968dece] | 141 | <listitem>
|
---|
[66b546a] | 142 | <para>
|
---|
| 143 | <xref linkend="pygtk"/>
|
---|
| 144 | </para>
|
---|
[968dece] | 145 | </listitem>
|
---|
[d938ca94] | 146 | <listitem>
|
---|
| 147 | <para>
|
---|
| 148 | <xref linkend="pyxdg"/>
|
---|
| 149 | </para>
|
---|
| 150 | </listitem>
|
---|
[6b551e8] | 151 | <!-- <listitem>
|
---|
[04dc524d] | 152 | <para>
|
---|
| 153 | <xref linkend="funcsigs"/>
|
---|
| 154 | </para>
|
---|
| 155 | </listitem>
|
---|
[cc1c942] | 156 | -->
|
---|
| 157 | <!-- <listitem>
|
---|
[22f9c48] | 158 | <para>
|
---|
| 159 | <xref linkend="Beaker"/>
|
---|
| 160 | </para>
|
---|
[08093b3] | 161 | </listitem>
|
---|
[cc1c942] | 162 | -->
|
---|
[cd964c8] | 163 | <listitem>
|
---|
| 164 | <para>
|
---|
| 165 | <xref linkend="libxml2py2"/>
|
---|
| 166 | </para>
|
---|
| 167 | </listitem>
|
---|
[7d35ee59] | 168 | <listitem>
|
---|
[23e36d1] | 169 | <para>
|
---|
| 170 | <xref linkend="lxml"/>
|
---|
| 171 | </para>
|
---|
| 172 | </listitem>
|
---|
[fde1abe] | 173 | <listitem revision="sysv">
|
---|
[22f9c48] | 174 | <para>
|
---|
| 175 | <xref linkend="MarkupSafe"/>
|
---|
| 176 | </para>
|
---|
| 177 | </listitem>
|
---|
[fde1abe] | 178 | <listitem revision="sysv">
|
---|
[22f9c48] | 179 | <para>
|
---|
| 180 | <xref linkend="Jinja2"/>
|
---|
| 181 | </para>
|
---|
| 182 | </listitem>
|
---|
[0499056] | 183 | <listitem>
|
---|
[22f9c48] | 184 | <para>
|
---|
| 185 | <xref linkend="Mako"/>
|
---|
| 186 | </para>
|
---|
| 187 | </listitem>
|
---|
[6e98a080] | 188 | <listitem>
|
---|
| 189 | <para>
|
---|
| 190 | <xref linkend="pyparsing"/>
|
---|
| 191 | </para>
|
---|
| 192 | </listitem>
|
---|
[0cf85fa] | 193 | <listitem>
|
---|
[14c0be2f] | 194 | <para>
|
---|
[0cf85fa] | 195 | <xref linkend="pytest"/>
|
---|
[14c0be2f] | 196 | </para>
|
---|
| 197 | </listitem>
|
---|
[a8b202a] | 198 | <listitem>
|
---|
| 199 | <para>
|
---|
| 200 | <xref linkend="recommonmark"/>
|
---|
| 201 | </para>
|
---|
| 202 | </listitem>
|
---|
[2dfb0a58] | 203 | <listitem>
|
---|
| 204 | <para>
|
---|
| 205 | <xref linkend="requests"/>
|
---|
| 206 | </para>
|
---|
| 207 | </listitem>
|
---|
[7d35ee59] | 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | <xref linkend="scour"/>
|
---|
| 211 | </para>
|
---|
| 212 | </listitem>
|
---|
[505c46cc] | 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | <xref linkend="six"/>
|
---|
| 216 | </para>
|
---|
| 217 | </listitem>
|
---|
[0cf85fa] | 218 | <listitem>
|
---|
| 219 | <para>
|
---|
| 220 | <xref linkend="sphinx"/>
|
---|
| 221 | </para>
|
---|
| 222 | </listitem>
|
---|
[6e86a83] | 223 | <listitem>
|
---|
| 224 | <para>
|
---|
| 225 | <xref linkend="sphinx_rtd_theme"/>
|
---|
| 226 | </para>
|
---|
| 227 | </listitem>
|
---|
[731bf37a] | 228 | <listitem>
|
---|
[22f9c48] | 229 | <para>
|
---|
| 230 | <xref linkend="PyYAML"/>
|
---|
| 231 | </para>
|
---|
| 232 | </listitem>
|
---|
[ce892ab3] | 233 | </itemizedlist>
|
---|
| 234 | </sect2>
|
---|
| 235 |
|
---|
[141ee0a5] | 236 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 237 | href="python-modules/asciidoc.xml"/>
|
---|
[141ee0a5] | 238 |
|
---|
[7b459c22] | 239 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 240 | href="python-modules/cython.xml"/>
|
---|
[7b459c22] | 241 |
|
---|
[d2b1e2e] | 242 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 243 | href="python-modules/dbus-python.xml"/>
|
---|
[a73f7b02] | 244 |
|
---|
[cc1c942] | 245 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[14c0be2f] | 246 | href="decorator.xml"/>
|
---|
[cc1c942] | 247 | -->
|
---|
[d3ea9e8] | 248 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 249 | href="python-modules/docutils.xml"/>
|
---|
[d3ea9e8] | 250 |
|
---|
[622cc86e] | 251 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 252 | href="python-modules/doxypypy.xml"/>
|
---|
| 253 |
|
---|
| 254 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 255 | href="python-modules/doxyqml.xml"/>
|
---|
| 256 |
|
---|
[8828c760] | 257 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 258 | href="python-modules/gi-docgen.xml"/>
|
---|
| 259 |
|
---|
[8c5e6ec] | 260 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 261 | href="python-modules/packaging.xml"/>
|
---|
| 262 |
|
---|
[3aee187] | 263 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 264 | href="python-modules/py3c.xml"/>
|
---|
[3aee187] | 265 |
|
---|
[22f9c48] | 266 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 267 | href="python-modules/pyatspi2.xml"/>
|
---|
[7979906] | 268 | <!--
|
---|
[d2b1e2e] | 269 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 270 | href="py2cairo.xml"/>
|
---|
[7979906] | 271 | -->
|
---|
[d2b1e2e] | 272 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 273 | href="python-modules/pycairo.xml"/>
|
---|
[82eddd4] | 274 |
|
---|
[0c2e5325] | 275 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 276 | href="python-modules/pycairo2.xml"/>
|
---|
[0c2e5325] | 277 |
|
---|
[82eddd4] | 278 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 279 | href="python-modules/pycryptodome.xml"/>
|
---|
[a73f7b02] | 280 |
|
---|
[10092cde] | 281 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 282 | href="python-modules/python-dbusmock.xml"/>
|
---|
[10092cde] | 283 |
|
---|
[07f61e4] | 284 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 285 | href="python-modules/pygments.xml"/>
|
---|
[07f61e4] | 286 |
|
---|
[d2b1e2e] | 287 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 288 | href="python-modules/pygobject2.xml"/>
|
---|
[a73f7b02] | 289 |
|
---|
[d2b1e2e] | 290 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 291 | href="python-modules/pygobject3.xml"/>
|
---|
[a73f7b02] | 292 |
|
---|
[d2b1e2e] | 293 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 294 | href="python-modules/pygtk.xml"/>
|
---|
[f4472d1] | 295 |
|
---|
[d2b1e2e] | 296 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 297 | href="python-modules/pyxdg.xml"/>
|
---|
[d938ca94] | 298 |
|
---|
[a8b202a] | 299 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 300 | href="python-modules/recommonmark.xml"/>
|
---|
| 301 |
|
---|
[879932f] | 302 | <!--
|
---|
[22f9c48] | 303 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 304 | href="setuptools.xml"/>
|
---|
[879932f] | 305 | -->
|
---|
[22f9c48] | 306 |
|
---|
[4701264] | 307 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 308 | href="funcsigs.xml"/> -->
|
---|
[04dc524d] | 309 |
|
---|
[6b551e8] | 310 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 311 | href="beaker.xml"/>-->
|
---|
[22f9c48] | 312 |
|
---|
[cd964c8] | 313 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 314 | href="python-modules/libxml2py2.xml"/>
|
---|
[cd964c8] | 315 |
|
---|
[23e36d1] | 316 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 317 | href="python-modules/lxml.xml"/>
|
---|
[23e36d1] | 318 |
|
---|
[22f9c48] | 319 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 320 | href="python-modules/markupsafe.xml"/>
|
---|
[22f9c48] | 321 |
|
---|
| 322 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 323 | href="python-modules/jinja2.xml"/>
|
---|
[22f9c48] | 324 |
|
---|
| 325 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 326 | href="python-modules/mako.xml"/>
|
---|
[22f9c48] | 327 |
|
---|
[6e98a080] | 328 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 329 | href="python-modules/pyparsing.xml"/>
|
---|
| 330 |
|
---|
[0cf85fa] | 331 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 332 | href="python-modules/pytest.xml"/>
|
---|
[14c0be2f] | 333 |
|
---|
[22f9c48] | 334 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 335 | href="python-modules/pyyaml.xml"/>
|
---|
[22f9c48] | 336 |
|
---|
[2dfb0a58] | 337 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 338 | href="python-modules/requests.xml"/>
|
---|
| 339 |
|
---|
[7d35ee59] | 340 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 341 | href="python-modules/scour.xml"/>
|
---|
[7d35ee59] | 342 |
|
---|
[505c46cc] | 343 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 344 | href="python-modules/six.xml"/>
|
---|
[505c46cc] | 345 |
|
---|
[0cf85fa] | 346 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 347 | href="python-modules/sphinx.xml"/>
|
---|
| 348 |
|
---|
[6e86a83] | 349 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 350 | href="python-modules/sphinx_rtd_theme.xml"/>
|
---|
| 351 |
|
---|
[ce892ab3] | 352 | </sect1>
|
---|