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