glfs/general/prog/lxml.xml
Douglas R. Reno a2ce7538c2 Update to valgrind-3.17.0
Update to lxml-4.6.3 (Python Module - Security Update)
Update to nettle-3.7.2 (Security Update)
Update to Thunar-4.16.6
Update to cairo-1.17.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24406 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-03-27 21:55:25 +00:00

159 lines
4.6 KiB
XML

<?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;
<!ENTITY lxml-download-http "&pymodules-dl;/l/lxml/lxml-&lxml-version;.tar.gz">
<!ENTITY lxml-download-ftp " ">
<!ENTITY lxml-md5sum "017f94473dcec0f9b2e9b03524398fa5">
<!ENTITY lxml-size "3.0 MB">
<!ENTITY lxml-buildsize "204 MB (add 29 MB for tests)">
<!ENTITY lxml-time "1.6 SBU (add 0.6 SBU for tests)">
]>
<!-- Begin lxml -->
<sect2 id="lxml" xreflabel="lxml-&lxml-version;">
<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>
&lfs101_checked;
<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>
<bridgehead renderas="sect5">Recommended</bridgehead>
<para role="recommended">
<xref linkend="python2"/>
</para>
<bridgehead renderas="sect5">Optional (to run more tests)</bridgehead>
<para role="optional">
<xref linkend="gdb"/>,
<xref linkend="valgrind"/>, and
<ulink url="&pypi;/cssselect/">cssselect</ulink>
</para>
<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. -->
<para>
To build both <application>Python 2</application> and
<application>Python 3</application> modules, run:
</para>
<screen><userinput>python2 setup.py build &amp;&amp;
python3 setup.py build</userinput></screen>
<para>
If you wish to run the tests, enter:
<command>make PYTHON=python2 test</command> and
<command>make PYTHON=python3 test</command>.
This will rebuild the package for inplace use before running the tests.
</para>
<para>
To install both modules, issue the following commands as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>python2 setup.py install --optimize=1 &amp;&amp;
python3 setup.py install --optimize=1</userinput></screen>
</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>
/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
and/or
/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
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>