glfs/general/prog/lxml.xml
Douglas R. Reno 2219a240da Update to lxml-4.3.1 (Python Module)
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21112 af4574ff-66df-0310-9fd7-8a98e5e911e0
2019-02-09 19:31:55 +00:00

178 lines
5.2 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 "d2b2eb305bfa9ed15aebe61affb3ffa4">
<!ENTITY lxml-size "4.2 MB">
<!ENTITY lxml-buildsize "179 MB (add 39 MB for the testsuite)">
<!ENTITY lxml-time "1.9 SBU (add 1.7 SBU for the testsuite)">
]>
<!-- 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>
&lfs83_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 the <application>Python 2</application> module, run:
</para>
<screen><userinput>python setup.py build</userinput></screen>
<para>
If you wish to run the tests, enter: <command>make test</command>.
This will rebuild the package for inplace use before running the tests.
One or more tests sometimes fail.
</para>
<para>
To install the <application>Python 2</application> module,
as the
<systemitem class="username">root</systemitem> user run:
</para>
<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
<para>
To build the <application>Python 3</application> module, run:
</para>
<screen><userinput>python3 setup.py clean &amp;&amp;
python3 setup.py build</userinput></screen>
<para>
If you wish to run the tests, enter: <command>make PYTHON=python3
test</command>. This will rebuild the package for inplace use before
running the tests. One or more tests sometimes fail.
</para>
<para>
To install the <application>Python 3</application> module,
as the
<systemitem class="username">root</systemitem> user run:
</para>
<screen role="root"><userinput>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>
<!--End lxml -->