2016-11-27 17:00:26 +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;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY lxml-download-http "&pymodules-dl;/l/lxml/lxml-&lxml-version;.tar.gz">
|
2016-11-27 17:00:26 +08:00
|
|
|
<!ENTITY lxml-download-ftp " ">
|
2020-11-29 10:11:44 +08:00
|
|
|
<!ENTITY lxml-md5sum "2e39c6e17d61f61e5be68fd328ba6a51">
|
2020-10-19 01:37:12 +08:00
|
|
|
<!ENTITY lxml-size "3.0 MB">
|
2020-11-29 10:11:44 +08:00
|
|
|
<!ENTITY lxml-buildsize "168 MB (add 51 MB for tests)">
|
2020-10-19 01:37:12 +08:00
|
|
|
<!ENTITY lxml-time "1.6 SBU (add 1.6 SBU for tests)">
|
2016-11-27 17:00:26 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<!-- Begin lxml -->
|
2017-08-14 10:06:29 +08:00
|
|
|
<sect2 id="lxml" xreflabel="lxml-&lxml-version;">
|
2016-11-27 17:00:26 +08:00
|
|
|
|
|
|
|
<title>lxml-&lxml-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="lxml">
|
|
|
|
<primary sortas="a-lxml">lxml</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect3 role="package">
|
|
|
|
<title>Introduction to lxml</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>lxml</application> provides
|
|
|
|
<application>Python</application> bindings for
|
|
|
|
<xref linkend="libxslt"/> and <xref linkend="libxml2"/>.
|
|
|
|
</para>
|
|
|
|
|
2020-08-19 02:53:24 +08:00
|
|
|
&lfs10_checked;
|
2016-11-27 17:00:26 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&lxml-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&lxml-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &lxml-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &lxml-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &lxml-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &lxml-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">lxml Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect5">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="libxslt"/>
|
|
|
|
</para>
|
|
|
|
|
2019-01-13 05:06:52 +08:00
|
|
|
<bridgehead renderas="sect5">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="python2"/>
|
|
|
|
</para>
|
|
|
|
|
2017-09-20 03:22:19 +08:00
|
|
|
<bridgehead renderas="sect5">Optional (to run more tests)</bridgehead>
|
|
|
|
<para role="optional">
|
2019-02-10 03:31:55 +08:00
|
|
|
<xref linkend="gdb"/>,
|
|
|
|
<xref linkend="valgrind"/>, and
|
2017-09-20 03:22:19 +08:00
|
|
|
<ulink url="&pypi;/cssselect/">cssselect</ulink>
|
|
|
|
</para>
|
|
|
|
|
2016-11-27 17:00:26 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/lxml"/>
|
|
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="installation">
|
|
|
|
<title>Installation of lxml</title>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Both <application>Python 2</application> and
|
|
|
|
<application>Python 3</application> modules can
|
|
|
|
be built and installed without any conflicts.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
|
|
|
|
2017-09-20 03:22:19 +08:00
|
|
|
<para>
|
2019-05-22 00:19:04 +08:00
|
|
|
To build both <application>Python 2</application> and
|
|
|
|
<application>Python 3</application> modules, run:
|
2017-09-20 03:22:19 +08:00
|
|
|
</para>
|
|
|
|
|
2019-05-22 00:19:04 +08:00
|
|
|
<screen><userinput>python2 setup.py build &&
|
|
|
|
python3 setup.py build</userinput></screen>
|
2017-09-20 03:22:19 +08:00
|
|
|
|
|
|
|
<para>
|
2019-05-22 00:19:04 +08:00
|
|
|
If you wish to run the tests, enter:
|
|
|
|
<command>make PYTHON=python2 test</command> and
|
|
|
|
<command>make PYTHON=python3 test</command>.
|
2017-09-20 03:22:19 +08:00
|
|
|
This will rebuild the package for inplace use before running the tests.
|
|
|
|
</para>
|
|
|
|
|
2016-11-27 17:00:26 +08:00
|
|
|
<para>
|
2019-05-22 00:19:04 +08:00
|
|
|
To install both modules, issue the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
2016-11-27 17:00:26 +08:00
|
|
|
</para>
|
|
|
|
|
2019-05-22 00:19:04 +08:00
|
|
|
<screen role="root"><userinput>python2 setup.py install --optimize=1 &&
|
|
|
|
python3 setup.py install --optimize=1</userinput></screen>
|
2016-11-27 17:00:26 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2017-09-20 03:22:19 +08:00
|
|
|
/usr/lib/python&python2-majorver;/site-packages/lxml,
|
|
|
|
/usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg-info
|
2016-11-27 17:00:26 +08:00
|
|
|
and/or
|
2017-09-20 03:22:19 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/lxml,
|
|
|
|
/usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg-info
|
2016-11-27 17:00:26 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
<!--End lxml -->
|