[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>
|
---|
[3aee187] | 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | <xref linkend="py3c"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
[ce892ab3] | 81 | <listitem>
|
---|
[66b546a] | 82 | <para>
|
---|
[d3ea9e8] | 83 | <xref linkend="pyatspi2"/>
|
---|
| 84 | </para>
|
---|
[ce892ab3] | 85 | </listitem>
|
---|
[a73f7b02] | 86 | <listitem>
|
---|
| 87 | <para>
|
---|
| 88 | <xref linkend="pycairo"/>
|
---|
| 89 | </para>
|
---|
| 90 | </listitem>
|
---|
[0c2e5325] | 91 | <listitem>
|
---|
| 92 | <para>
|
---|
| 93 | <xref linkend="pycairo2"/>
|
---|
| 94 | </para>
|
---|
| 95 | </listitem>
|
---|
[82eddd4] | 96 | <listitem>
|
---|
| 97 | <para>
|
---|
[ceafde50] | 98 | <xref linkend="pycryptodome"/>
|
---|
[82eddd4] | 99 | </para>
|
---|
| 100 | </listitem>
|
---|
[10092cde] | 101 | <listitem>
|
---|
| 102 | <para>
|
---|
| 103 | <xref linkend="python-dbusmock"/>
|
---|
| 104 | </para>
|
---|
| 105 | </listitem>
|
---|
[07f61e4] | 106 | <listitem>
|
---|
| 107 | <para>
|
---|
| 108 | <xref linkend="pygments"/>
|
---|
| 109 | </para>
|
---|
| 110 | </listitem>
|
---|
[f4472d1] | 111 | <listitem>
|
---|
[66b546a] | 112 | <para>
|
---|
| 113 | <xref linkend="pygobject2"/>
|
---|
| 114 | </para>
|
---|
[ce892ab3] | 115 | </listitem>
|
---|
| 116 | <listitem>
|
---|
[66b546a] | 117 | <para>
|
---|
| 118 | <xref linkend="pygobject3"/>
|
---|
| 119 | </para>
|
---|
[ce892ab3] | 120 | </listitem>
|
---|
[968dece] | 121 | <listitem>
|
---|
[66b546a] | 122 | <para>
|
---|
| 123 | <xref linkend="pygtk"/>
|
---|
| 124 | </para>
|
---|
[968dece] | 125 | </listitem>
|
---|
[d938ca94] | 126 | <listitem>
|
---|
| 127 | <para>
|
---|
| 128 | <xref linkend="pyxdg"/>
|
---|
| 129 | </para>
|
---|
| 130 | </listitem>
|
---|
[6b551e8] | 131 | <!-- <listitem>
|
---|
[04dc524d] | 132 | <para>
|
---|
| 133 | <xref linkend="funcsigs"/>
|
---|
| 134 | </para>
|
---|
| 135 | </listitem>
|
---|
[cc1c942] | 136 | -->
|
---|
| 137 | <!-- <listitem>
|
---|
[22f9c48] | 138 | <para>
|
---|
| 139 | <xref linkend="Beaker"/>
|
---|
| 140 | </para>
|
---|
[08093b3] | 141 | </listitem>
|
---|
[cc1c942] | 142 | -->
|
---|
[cd964c8] | 143 | <listitem>
|
---|
| 144 | <para>
|
---|
| 145 | <xref linkend="libxml2py2"/>
|
---|
| 146 | </para>
|
---|
| 147 | </listitem>
|
---|
[7d35ee59] | 148 | <listitem>
|
---|
[23e36d1] | 149 | <para>
|
---|
| 150 | <xref linkend="lxml"/>
|
---|
| 151 | </para>
|
---|
| 152 | </listitem>
|
---|
[fde1abe] | 153 | <listitem revision="sysv">
|
---|
[22f9c48] | 154 | <para>
|
---|
| 155 | <xref linkend="MarkupSafe"/>
|
---|
| 156 | </para>
|
---|
| 157 | </listitem>
|
---|
[fde1abe] | 158 | <listitem revision="sysv">
|
---|
[22f9c48] | 159 | <para>
|
---|
| 160 | <xref linkend="Jinja2"/>
|
---|
| 161 | </para>
|
---|
| 162 | </listitem>
|
---|
[0499056] | 163 | <listitem>
|
---|
[22f9c48] | 164 | <para>
|
---|
| 165 | <xref linkend="Mako"/>
|
---|
| 166 | </para>
|
---|
| 167 | </listitem>
|
---|
[cc1c942] | 168 | <!-- <listitem>
|
---|
[14c0be2f] | 169 | <para>
|
---|
| 170 | <xref linkend="python-slip"/>
|
---|
| 171 | </para>
|
---|
| 172 | </listitem>
|
---|
[cc1c942] | 173 | -->
|
---|
[7d35ee59] | 174 | <listitem>
|
---|
| 175 | <para>
|
---|
| 176 | <xref linkend="scour"/>
|
---|
| 177 | </para>
|
---|
| 178 | </listitem>
|
---|
[505c46cc] | 179 | <listitem>
|
---|
| 180 | <para>
|
---|
| 181 | <xref linkend="six"/>
|
---|
| 182 | </para>
|
---|
| 183 | </listitem>
|
---|
[731bf37a] | 184 | <listitem>
|
---|
[22f9c48] | 185 | <para>
|
---|
| 186 | <xref linkend="PyYAML"/>
|
---|
| 187 | </para>
|
---|
| 188 | </listitem>
|
---|
[ce892ab3] | 189 | </itemizedlist>
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
[141ee0a5] | 192 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 193 | href="asciidoc.xml"/>
|
---|
| 194 |
|
---|
[7b459c22] | 195 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 196 | href="cython.xml"/>
|
---|
| 197 |
|
---|
[d2b1e2e] | 198 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 199 | href="dbus-python.xml"/>
|
---|
[a73f7b02] | 200 |
|
---|
[cc1c942] | 201 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[14c0be2f] | 202 | href="decorator.xml"/>
|
---|
[cc1c942] | 203 | -->
|
---|
[d3ea9e8] | 204 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 205 | href="docutils.xml"/>
|
---|
| 206 |
|
---|
[3aee187] | 207 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 208 | href="py3c.xml"/>
|
---|
| 209 |
|
---|
[22f9c48] | 210 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 211 | href="pyatspi2.xml"/>
|
---|
[7979906] | 212 | <!--
|
---|
[d2b1e2e] | 213 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 214 | href="py2cairo.xml"/>
|
---|
[7979906] | 215 | -->
|
---|
[d2b1e2e] | 216 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 217 | href="pycairo.xml"/>
|
---|
[82eddd4] | 218 |
|
---|
[0c2e5325] | 219 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 220 | href="pycairo2.xml"/>
|
---|
| 221 |
|
---|
[82eddd4] | 222 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[ceafde50] | 223 | href="pycryptodome.xml"/>
|
---|
[a73f7b02] | 224 |
|
---|
[10092cde] | 225 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 226 | href="python-dbusmock.xml"/>
|
---|
| 227 |
|
---|
[07f61e4] | 228 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 229 | href="pygments.xml"/>
|
---|
| 230 |
|
---|
[d2b1e2e] | 231 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 232 | href="pygobject2.xml"/>
|
---|
[a73f7b02] | 233 |
|
---|
[d2b1e2e] | 234 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 235 | href="pygobject3.xml"/>
|
---|
[a73f7b02] | 236 |
|
---|
[d2b1e2e] | 237 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 238 | href="pygtk.xml"/>
|
---|
[f4472d1] | 239 |
|
---|
[d2b1e2e] | 240 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 241 | href="pyxdg.xml"/>
|
---|
[d938ca94] | 242 |
|
---|
[879932f] | 243 | <!--
|
---|
[22f9c48] | 244 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 245 | href="setuptools.xml"/>
|
---|
[879932f] | 246 | -->
|
---|
[22f9c48] | 247 |
|
---|
[4701264] | 248 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 249 | href="funcsigs.xml"/> -->
|
---|
[04dc524d] | 250 |
|
---|
[6b551e8] | 251 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 252 | href="beaker.xml"/>-->
|
---|
[22f9c48] | 253 |
|
---|
[cd964c8] | 254 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 255 | href="libxml2py2.xml"/>
|
---|
| 256 |
|
---|
[23e36d1] | 257 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 258 | href="lxml.xml"/>
|
---|
| 259 |
|
---|
[22f9c48] | 260 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 261 | href="markupsafe.xml"/>
|
---|
| 262 |
|
---|
| 263 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 264 | href="jinja2.xml"/>
|
---|
| 265 |
|
---|
| 266 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 267 | href="mako.xml"/>
|
---|
| 268 |
|
---|
[cc1c942] | 269 | <!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 270 | href="python-slip.xml"/>-->
|
---|
[14c0be2f] | 271 |
|
---|
[22f9c48] | 272 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 273 | href="pyyaml.xml"/>
|
---|
| 274 |
|
---|
[7d35ee59] | 275 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 276 | href="scour.xml"/>
|
---|
| 277 |
|
---|
[505c46cc] | 278 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 279 | href="six.xml"/>
|
---|
| 280 |
|
---|
[ce892ab3] | 281 | </sect1>
|
---|