[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 | <sect1info>
|
---|
| 12 | <date>$Date$</date>
|
---|
| 13 | </sect1info>
|
---|
| 14 |
|
---|
| 15 | <title>Python Modules</title>
|
---|
| 16 |
|
---|
| 17 | <indexterm zone="python-modules">
|
---|
[d2b1e2e] | 18 | <primary sortas="a-Python-Modules">Python Modules</primary>
|
---|
[ce892ab3] | 19 | </indexterm>
|
---|
| 20 |
|
---|
| 21 | <sect2 role="package">
|
---|
| 22 | <title>Introduction to Python Modules</title>
|
---|
| 23 |
|
---|
[66b546a] | 24 | <para>
|
---|
| 25 | The <application>Python</application> module packages add useful objects
|
---|
| 26 | to the <application>Python</application> language. Modules utilized by
|
---|
| 27 | packages throughout BLFS are listed here, along with their dependencies.
|
---|
| 28 | </para>
|
---|
[ce892ab3] | 29 |
|
---|
[8c2cfcf] | 30 | <important>
|
---|
| 31 | <para>
|
---|
| 32 | In BLFS, we normally build and install Python 3 modules with
|
---|
| 33 | <command>pip3</command>. Please take care that the
|
---|
| 34 | <command>pip3 install</command> commands in the book should be
|
---|
| 35 | run as &root; unless it's for a Python virtual environment. Running
|
---|
[7777643] | 36 | <command>pip3 install</command> as a non-&root; user may seem to
|
---|
[1bd1f767] | 37 | work fine, but it will cause the installed module to be inaccessible by
|
---|
[8c2cfcf] | 38 | other users.
|
---|
| 39 | </para>
|
---|
| 40 | <para>
|
---|
| 41 | <command>pip3 install</command> will not reinstall an already
|
---|
| 42 | installed module by default. For using the
|
---|
| 43 | <command>pip3 install</command> command to upgrade a module (for
|
---|
[7777643] | 44 | example, from meson-0.61.3 to meson-0.62.0), insert
|
---|
| 45 | <parameter>--upgrade</parameter> into the command line. If it's really
|
---|
[8c2cfcf] | 46 | necessary to downgrade a module or reinstall the same version for
|
---|
[7777643] | 47 | some reason, insert <parameter>--force-reinstall</parameter> into
|
---|
[8c2cfcf] | 48 | the command line.
|
---|
| 49 | </para>
|
---|
| 50 | </important>
|
---|
| 51 |
|
---|
[ce892ab3] | 52 | <itemizedlist spacing="compact">
|
---|
[141ee0a5] | 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | <xref linkend="asciidoc"/>
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
[ae96c4b] | 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | <xref linkend="dbus-python"/>
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
[cc1c942] | 63 | <!-- <listitem>
|
---|
[14c0be2f] | 64 | <para>
|
---|
| 65 | <xref linkend="decorator"/>
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
[cc1c942] | 68 | -->
|
---|
[93883ec] | 69 | <listitem>
|
---|
[22f9c48] | 70 | <para>
|
---|
[d3ea9e8] | 71 | <xref linkend="docutils"/>
|
---|
[8558044] | 72 | </para>
|
---|
[22f9c48] | 73 | </listitem>
|
---|
[3aee187] | 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | <xref linkend="py3c"/>
|
---|
| 77 | </para>
|
---|
| 78 | </listitem>
|
---|
[ce892ab3] | 79 | <listitem>
|
---|
[66b546a] | 80 | <para>
|
---|
[d3ea9e8] | 81 | <xref linkend="pyatspi2"/>
|
---|
| 82 | </para>
|
---|
[ce892ab3] | 83 | </listitem>
|
---|
[a73f7b02] | 84 | <listitem>
|
---|
| 85 | <para>
|
---|
| 86 | <xref linkend="pycairo"/>
|
---|
| 87 | </para>
|
---|
| 88 | </listitem>
|
---|
[0c2e5325] | 89 | <listitem>
|
---|
| 90 | <para>
|
---|
| 91 | <xref linkend="pycairo2"/>
|
---|
| 92 | </para>
|
---|
| 93 | </listitem>
|
---|
[82eddd4] | 94 | <listitem>
|
---|
| 95 | <para>
|
---|
[ceafde50] | 96 | <xref linkend="pycryptodome"/>
|
---|
[82eddd4] | 97 | </para>
|
---|
| 98 | </listitem>
|
---|
[10092cde] | 99 | <listitem>
|
---|
| 100 | <para>
|
---|
| 101 | <xref linkend="python-dbusmock"/>
|
---|
| 102 | </para>
|
---|
| 103 | </listitem>
|
---|
[07f61e4] | 104 | <listitem>
|
---|
| 105 | <para>
|
---|
| 106 | <xref linkend="pygments"/>
|
---|
| 107 | </para>
|
---|
| 108 | </listitem>
|
---|
[f4472d1] | 109 | <listitem>
|
---|
[66b546a] | 110 | <para>
|
---|
| 111 | <xref linkend="pygobject2"/>
|
---|
| 112 | </para>
|
---|
[ce892ab3] | 113 | </listitem>
|
---|
| 114 | <listitem>
|
---|
[66b546a] | 115 | <para>
|
---|
| 116 | <xref linkend="pygobject3"/>
|
---|
| 117 | </para>
|
---|
[ce892ab3] | 118 | </listitem>
|
---|
[968dece] | 119 | <listitem>
|
---|
[66b546a] | 120 | <para>
|
---|
| 121 | <xref linkend="pygtk"/>
|
---|
| 122 | </para>
|
---|
[968dece] | 123 | </listitem>
|
---|
[d938ca94] | 124 | <listitem>
|
---|
| 125 | <para>
|
---|
| 126 | <xref linkend="pyxdg"/>
|
---|
| 127 | </para>
|
---|
| 128 | </listitem>
|
---|
[6b551e8] | 129 | <!-- <listitem>
|
---|
[04dc524d] | 130 | <para>
|
---|
| 131 | <xref linkend="funcsigs"/>
|
---|
| 132 | </para>
|
---|
| 133 | </listitem>
|
---|
[cc1c942] | 134 | -->
|
---|
| 135 | <!-- <listitem>
|
---|
[22f9c48] | 136 | <para>
|
---|
| 137 | <xref linkend="Beaker"/>
|
---|
| 138 | </para>
|
---|
[08093b3] | 139 | </listitem>
|
---|
[cc1c942] | 140 | -->
|
---|
[cd964c8] | 141 | <listitem>
|
---|
| 142 | <para>
|
---|
| 143 | <xref linkend="libxml2py2"/>
|
---|
| 144 | </para>
|
---|
| 145 | </listitem>
|
---|
[7d35ee59] | 146 | <listitem>
|
---|
[23e36d1] | 147 | <para>
|
---|
| 148 | <xref linkend="lxml"/>
|
---|
| 149 | </para>
|
---|
| 150 | </listitem>
|
---|
[fde1abe] | 151 | <listitem revision="sysv">
|
---|
[22f9c48] | 152 | <para>
|
---|
| 153 | <xref linkend="MarkupSafe"/>
|
---|
| 154 | </para>
|
---|
| 155 | </listitem>
|
---|
[fde1abe] | 156 | <listitem revision="sysv">
|
---|
[22f9c48] | 157 | <para>
|
---|
| 158 | <xref linkend="Jinja2"/>
|
---|
| 159 | </para>
|
---|
| 160 | </listitem>
|
---|
[0499056] | 161 | <listitem>
|
---|
[22f9c48] | 162 | <para>
|
---|
| 163 | <xref linkend="Mako"/>
|
---|
| 164 | </para>
|
---|
| 165 | </listitem>
|
---|
[cc1c942] | 166 | <!-- <listitem>
|
---|
[14c0be2f] | 167 | <para>
|
---|
| 168 | <xref linkend="python-slip"/>
|
---|
| 169 | </para>
|
---|
| 170 | </listitem>
|
---|
[cc1c942] | 171 | -->
|
---|
[7d35ee59] | 172 | <listitem>
|
---|
| 173 | <para>
|
---|
| 174 | <xref linkend="scour"/>
|
---|
| 175 | </para>
|
---|
| 176 | </listitem>
|
---|
[505c46cc] | 177 | <listitem>
|
---|
| 178 | <para>
|
---|
| 179 | <xref linkend="six"/>
|
---|
| 180 | </para>
|
---|
| 181 | </listitem>
|
---|
[731bf37a] | 182 | <listitem>
|
---|
[22f9c48] | 183 | <para>
|
---|
| 184 | <xref linkend="PyYAML"/>
|
---|
| 185 | </para>
|
---|
| 186 | </listitem>
|
---|
[ce892ab3] | 187 | </itemizedlist>
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
[141ee0a5] | 190 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 191 | href="asciidoc.xml"/>
|
---|
| 192 |
|
---|
[d2b1e2e] | 193 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 194 | href="dbus-python.xml"/>
|
---|
[a73f7b02] | 195 |
|
---|
[cc1c942] | 196 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[14c0be2f] | 197 | href="decorator.xml"/>
|
---|
[cc1c942] | 198 | -->
|
---|
[d3ea9e8] | 199 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 200 | href="docutils.xml"/>
|
---|
| 201 |
|
---|
[3aee187] | 202 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 203 | href="py3c.xml"/>
|
---|
| 204 |
|
---|
[22f9c48] | 205 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 206 | href="pyatspi2.xml"/>
|
---|
[7979906] | 207 | <!--
|
---|
[d2b1e2e] | 208 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 209 | href="py2cairo.xml"/>
|
---|
[7979906] | 210 | -->
|
---|
[d2b1e2e] | 211 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 212 | href="pycairo.xml"/>
|
---|
[82eddd4] | 213 |
|
---|
[0c2e5325] | 214 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 215 | href="pycairo2.xml"/>
|
---|
| 216 |
|
---|
[82eddd4] | 217 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[ceafde50] | 218 | href="pycryptodome.xml"/>
|
---|
[a73f7b02] | 219 |
|
---|
[10092cde] | 220 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 221 | href="python-dbusmock.xml"/>
|
---|
| 222 |
|
---|
[07f61e4] | 223 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 224 | href="pygments.xml"/>
|
---|
| 225 |
|
---|
[d2b1e2e] | 226 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 227 | href="pygobject2.xml"/>
|
---|
[a73f7b02] | 228 |
|
---|
[d2b1e2e] | 229 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 230 | href="pygobject3.xml"/>
|
---|
[a73f7b02] | 231 |
|
---|
[d2b1e2e] | 232 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 233 | href="pygtk.xml"/>
|
---|
[f4472d1] | 234 |
|
---|
[d2b1e2e] | 235 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 236 | href="pyxdg.xml"/>
|
---|
[d938ca94] | 237 |
|
---|
[879932f] | 238 | <!--
|
---|
[22f9c48] | 239 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 240 | href="setuptools.xml"/>
|
---|
[879932f] | 241 | -->
|
---|
[22f9c48] | 242 |
|
---|
[4701264] | 243 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 244 | href="funcsigs.xml"/> -->
|
---|
[04dc524d] | 245 |
|
---|
[6b551e8] | 246 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 247 | href="beaker.xml"/>-->
|
---|
[22f9c48] | 248 |
|
---|
[cd964c8] | 249 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 250 | href="libxml2py2.xml"/>
|
---|
| 251 |
|
---|
[23e36d1] | 252 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 253 | href="lxml.xml"/>
|
---|
| 254 |
|
---|
[22f9c48] | 255 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 256 | href="markupsafe.xml"/>
|
---|
| 257 |
|
---|
| 258 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 259 | href="jinja2.xml"/>
|
---|
| 260 |
|
---|
| 261 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 262 | href="mako.xml"/>
|
---|
| 263 |
|
---|
[cc1c942] | 264 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 265 | href="python-slip.xml"/>-->
|
---|
[14c0be2f] | 266 |
|
---|
[22f9c48] | 267 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 268 | href="pyyaml.xml"/>
|
---|
| 269 |
|
---|
[7d35ee59] | 270 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 271 | href="scour.xml"/>
|
---|
| 272 |
|
---|
[505c46cc] | 273 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 274 | href="six.xml"/>
|
---|
| 275 |
|
---|
[ce892ab3] | 276 | </sect1>
|
---|