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