2007-08-13 00:35:36 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<sect1 id="python-modules" xreflabel="Python Modules">
|
2007-08-13 00:35:36 +08:00
|
|
|
<?dbhtml filename="python-modules.html" ?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Python Modules</title>
|
|
|
|
|
|
|
|
<indexterm zone="python-modules">
|
2013-08-09 06:57:44 +08:00
|
|
|
<primary sortas="a-Python-Modules">Python Modules</primary>
|
2007-08-13 00:35:36 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Python Modules</title>
|
|
|
|
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
|
|
|
The <application>Python</application> module packages add useful objects
|
|
|
|
to the <application>Python</application> language. Modules utilized by
|
|
|
|
packages throughout BLFS are listed here, along with their dependencies.
|
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
|
2022-04-21 14:42:25 +08:00
|
|
|
<important>
|
|
|
|
<para>
|
|
|
|
In BLFS, we normally build and install Python 3 modules with
|
|
|
|
<command>pip3</command>. Please take care that the
|
|
|
|
<command>pip3 install</command> commands in the book should be
|
|
|
|
run as &root; unless it's for a Python virtual environment. Running
|
2022-04-21 22:09:28 +08:00
|
|
|
<command>pip3 install</command> as a non-&root; user may seem to
|
2022-04-23 01:07:02 +08:00
|
|
|
work fine, but it will cause the installed module to be inaccessible by
|
2022-04-21 14:42:25 +08:00
|
|
|
other users.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<command>pip3 install</command> will not reinstall an already
|
|
|
|
installed module by default. For using the
|
|
|
|
<command>pip3 install</command> command to upgrade a module (for
|
2022-04-21 22:09:28 +08:00
|
|
|
example, from meson-0.61.3 to meson-0.62.0), insert
|
|
|
|
<parameter>--upgrade</parameter> into the command line. If it's really
|
2022-04-21 14:42:25 +08:00
|
|
|
necessary to downgrade a module or reinstall the same version for
|
2022-04-21 22:09:28 +08:00
|
|
|
some reason, insert <parameter>--force-reinstall</parameter> into
|
2022-04-21 14:42:25 +08:00
|
|
|
the command line.
|
|
|
|
</para>
|
|
|
|
</important>
|
|
|
|
|
2007-08-13 00:35:36 +08:00
|
|
|
<itemizedlist spacing="compact">
|
2023-02-01 04:00:54 +08:00
|
|
|
<!--
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pythonhosted"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
-->
|
2021-10-28 18:59:23 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="asciidoc"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-09-11 02:21:42 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="cython"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2013-07-15 06:46:33 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="dbus-python"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2021-09-17 00:56:17 +08:00
|
|
|
<!-- <listitem>
|
2019-10-25 14:28:45 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="decorator"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2021-09-17 00:56:17 +08:00
|
|
|
-->
|
2017-01-20 15:18:30 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
2017-11-19 06:17:57 +08:00
|
|
|
<xref linkend="docutils"/>
|
2021-09-07 01:42:49 +08:00
|
|
|
</para>
|
2016-06-06 11:35:53 +08:00
|
|
|
</listitem>
|
2022-10-30 04:33:08 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="doxypypy"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="doxyqml"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-11-03 16:00:30 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="gi-docgen"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-11-01 15:18:49 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="packaging"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2020-05-29 17:43:04 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="py3c"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-08-13 00:35:36 +08:00
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
2017-11-19 06:17:57 +08:00
|
|
|
<xref linkend="pyatspi2"/>
|
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
2013-07-15 02:06:15 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pycairo"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2020-02-14 07:23:59 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pycairo2"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-03-15 13:35:12 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2019-09-09 10:57:12 +08:00
|
|
|
<xref linkend="pycryptodome"/>
|
2017-03-15 13:35:12 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2020-02-06 00:30:05 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="python-dbusmock"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2019-05-12 23:02:34 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pygments"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2012-01-26 03:26:52 +08:00
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="pygobject2"/>
|
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="pygobject3"/>
|
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
2010-01-08 19:17:37 +08:00
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="pygtk"/>
|
|
|
|
</para>
|
2010-01-08 19:17:37 +08:00
|
|
|
</listitem>
|
2013-07-15 07:24:00 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pyxdg"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2018-12-18 03:05:10 +08:00
|
|
|
<!-- <listitem>
|
2016-12-15 13:07:13 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="funcsigs"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2021-09-17 00:56:17 +08:00
|
|
|
-->
|
|
|
|
<!-- <listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="Beaker"/>
|
|
|
|
</para>
|
2021-10-02 13:38:10 +08:00
|
|
|
</listitem>
|
2021-09-17 00:56:17 +08:00
|
|
|
-->
|
2017-11-23 11:21:36 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="libxml2py2"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-08-14 10:06:29 +08:00
|
|
|
<listitem>
|
2016-11-27 17:00:26 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="lxml"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-04-17 15:50:50 +08:00
|
|
|
<listitem revision="sysv">
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="MarkupSafe"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-04-17 15:50:50 +08:00
|
|
|
<listitem revision="sysv">
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="Jinja2"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-05-16 03:59:26 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="Mako"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-10-20 23:13:04 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pyparsing"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-09-30 17:38:51 +08:00
|
|
|
<listitem>
|
2019-10-25 14:28:45 +08:00
|
|
|
<para>
|
2022-09-30 17:38:51 +08:00
|
|
|
<xref linkend="pytest"/>
|
2019-10-25 14:28:45 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-11-01 17:41:18 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="recommonmark"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-10-03 02:20:02 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="requests"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-08-14 10:06:29 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="scour"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-08-22 04:22:19 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="six"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-09-30 17:38:51 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="sphinx"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-10-20 23:21:40 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="sphinx_rtd_theme"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2019-03-28 10:46:10 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
|
|
|
<xref linkend="PyYAML"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-08-13 00:35:36 +08:00
|
|
|
</itemizedlist>
|
|
|
|
</sect2>
|
|
|
|
|
2023-02-01 04:00:54 +08:00
|
|
|
<!--
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-dependencies/pythonhosted.xml"/>
|
|
|
|
-->
|
2021-10-28 18:59:23 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/asciidoc.xml"/>
|
2021-10-28 18:59:23 +08:00
|
|
|
|
2022-09-11 02:21:42 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/cython.xml"/>
|
2022-09-11 02:21:42 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/dbus-python.xml"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
|
2021-09-17 00:56:17 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2019-10-25 14:28:45 +08:00
|
|
|
href="decorator.xml"/>
|
2021-09-17 00:56:17 +08:00
|
|
|
-->
|
2017-11-19 06:17:57 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/docutils.xml"/>
|
2017-11-19 06:17:57 +08:00
|
|
|
|
2022-10-30 04:33:08 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/doxypypy.xml"/>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/doxyqml.xml"/>
|
|
|
|
|
2022-11-03 16:00:30 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/gi-docgen.xml"/>
|
|
|
|
|
2022-11-01 15:18:49 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/packaging.xml"/>
|
|
|
|
|
2020-05-29 17:43:04 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/py3c.xml"/>
|
2020-05-29 17:43:04 +08:00
|
|
|
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pyatspi2.xml"/>
|
2017-05-23 04:46:50 +08:00
|
|
|
<!--
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="py2cairo.xml"/>
|
2017-05-23 04:46:50 +08:00
|
|
|
-->
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pycairo.xml"/>
|
2017-03-15 13:35:12 +08:00
|
|
|
|
2020-02-14 07:23:59 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pycairo2.xml"/>
|
2020-02-14 07:23:59 +08:00
|
|
|
|
2017-03-15 13:35:12 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pycryptodome.xml"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
|
2020-02-06 00:30:05 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/python-dbusmock.xml"/>
|
2020-02-06 00:30:05 +08:00
|
|
|
|
2019-05-12 23:02:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pygments.xml"/>
|
2019-05-12 23:02:34 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pygobject2.xml"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pygobject3.xml"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pygtk.xml"/>
|
2012-01-26 03:26:52 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pyxdg.xml"/>
|
2013-07-15 07:24:00 +08:00
|
|
|
|
2022-11-01 17:41:18 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/recommonmark.xml"/>
|
|
|
|
|
2017-02-16 08:04:09 +08:00
|
|
|
<!--
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="setuptools.xml"/>
|
2017-02-16 08:04:09 +08:00
|
|
|
-->
|
2016-06-06 11:35:53 +08:00
|
|
|
|
2019-01-12 04:54:44 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="funcsigs.xml"/> -->
|
2016-12-15 13:07:13 +08:00
|
|
|
|
2018-12-18 03:05:10 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="beaker.xml"/>-->
|
2016-06-06 11:35:53 +08:00
|
|
|
|
2017-11-23 11:21:36 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/libxml2py2.xml"/>
|
2017-11-23 11:21:36 +08:00
|
|
|
|
2016-11-27 17:00:26 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/lxml.xml"/>
|
2016-11-27 17:00:26 +08:00
|
|
|
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/markupsafe.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/jinja2.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/mako.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
2022-10-20 23:13:04 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/pyparsing.xml"/>
|
|
|
|
|
2022-09-30 17:38:51 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/pytest.xml"/>
|
2019-10-25 14:28:45 +08:00
|
|
|
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/pyyaml.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
2022-10-03 02:20:02 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/requests.xml"/>
|
|
|
|
|
2017-08-14 10:06:29 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/scour.xml"/>
|
2017-08-14 10:06:29 +08:00
|
|
|
|
2017-08-22 04:22:19 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2022-09-16 00:18:59 +08:00
|
|
|
href="python-modules/six.xml"/>
|
2017-08-22 04:22:19 +08:00
|
|
|
|
2022-09-30 17:38:51 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/sphinx.xml"/>
|
|
|
|
|
2022-10-20 23:21:40 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/sphinx_rtd_theme.xml"/>
|
|
|
|
|
2007-08-13 00:35:36 +08:00
|
|
|
</sect1>
|