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
|
|
|
|
2023-05-13 14:44:46 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If you want to run tests, several of the following modules depend on
|
|
|
|
the <option>sqlite3</option> core python module that has not been
|
|
|
|
built in LFS. It is therefore recommended to rebuild Python after
|
|
|
|
installing the recommended dependency listed in
|
|
|
|
<xref linkend="python3"/>.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
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>
|
2023-02-27 04:58:24 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="cachecontrol"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-27 00:48:05 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="cssselect"/>
|
|
|
|
</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>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="python-dbusmock"/>
|
2013-07-15 06:46:33 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-01 08:55:09 +08:00
|
|
|
<listitem>
|
2019-10-25 14:28:45 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="dbus-python"/>
|
2019-10-25 14:28:45 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
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>
|
2007-08-13 00:35:36 +08:00
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="lxml"/>
|
2017-11-19 06:17:57 +08:00
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
2013-07-15 02:06:15 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="Mako"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-26 12:12:29 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="numpy"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-03-15 13:35:12 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="packaging"/>
|
2017-03-15 13:35:12 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2020-02-06 00:30:05 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="py3c"/>
|
2020-02-06 00:30:05 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2019-05-12 23:02:34 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pyatspi2"/>
|
2019-05-12 23:02:34 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2012-01-26 03:26:52 +08:00
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pycairo2"/>
|
2012-03-30 05:18:43 +08:00
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pycairo"/>
|
2012-03-30 05:18:43 +08:00
|
|
|
</para>
|
2007-08-13 00:35:36 +08:00
|
|
|
</listitem>
|
2023-09-19 00:34:00 +08:00
|
|
|
<!-- <listitem>
|
2012-03-30 05:18:43 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pycryptodome"/>
|
2012-03-30 05:18:43 +08:00
|
|
|
</para>
|
2023-09-19 00:34:00 +08:00
|
|
|
</listitem> -->
|
2013-07-15 07:24:00 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pygments"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
</para>
|
2021-10-02 13:38:10 +08:00
|
|
|
</listitem>
|
2017-11-23 11:21:36 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pygobject2"/>
|
2017-11-23 11:21:36 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-08-14 10:06:29 +08:00
|
|
|
<listitem>
|
2016-11-27 17:00:26 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pygobject3"/>
|
2016-11-27 17:00:26 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-01 08:55:09 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pygtk"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-01 08:55:09 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pyparsing"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2023-02-27 01:27:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<xref linkend="pyserial"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2017-05-16 03:59:26 +08:00
|
|
|
<listitem>
|
2016-06-06 11:35:53 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pytest"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-10-20 23:13:04 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="pyxdg"/>
|
2022-10-20 23:13:04 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2022-09-30 17:38:51 +08:00
|
|
|
<listitem>
|
2019-10-25 14:28:45 +08:00
|
|
|
<para>
|
2023-02-01 08:55:09 +08:00
|
|
|
<xref linkend="PyYAML"/>
|
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>
|
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
|
|
|
|
2023-02-27 00:48:05 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/cssselect.xml"/>
|
|
|
|
|
2023-02-27 04:58:24 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/cachecontrol.xml"/>
|
|
|
|
|
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
|
|
|
|
2023-02-01 08:55:09 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/python-dbusmock.xml"/>
|
|
|
|
|
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
|
|
|
|
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"/>
|
|
|
|
|
2020-02-14 07:23:59 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/lxml.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/mako.xml"/>
|
2013-07-15 02:06:15 +08:00
|
|
|
|
2023-02-26 12:12:29 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/numpy.xml"/>
|
|
|
|
|
2019-05-12 23:02:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/packaging.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/py3c.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pyatspi2.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pycairo2.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pycairo.xml"/>
|
2013-07-15 07:24:00 +08:00
|
|
|
|
2023-09-19 00:34:00 +08:00
|
|
|
<!-- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/pycryptodome.xml"/> -->
|
2022-11-01 17:41:18 +08:00
|
|
|
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pygments.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pygobject2.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pygobject3.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pygtk.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pyparsing.xml"/>
|
2016-06-06 11:35:53 +08:00
|
|
|
|
2023-02-27 01:27:45 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="python-modules/pyserial.xml"/>
|
|
|
|
|
2016-06-06 11:35:53 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pytest.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pyxdg.xml"/>
|
2022-10-20 23:13:04 +08:00
|
|
|
|
2022-09-30 17:38:51 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/pyyaml.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"
|
2023-02-01 08:55:09 +08:00
|
|
|
href="python-modules/recommonmark.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>
|