mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
1e9b1f2777
Update to tumbler-0.2.6. Update to garcon-0.6.4. Update to exo-0.12.7. Update to mousepad-0.4.2. Update to lxml-4.4.0 (python module). Update to pango-1.44.1. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21881 af4574ff-66df-0310-9fd7-8a98e5e911e0
161 lines
4.7 KiB
XML
161 lines
4.7 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 "7d585daedcd51011c3217a61982afd3d">
|
|
<!ENTITY lxml-size "4.3 MB">
|
|
<!ENTITY lxml-buildsize "180 MB (add 46 MB for the testsuites)">
|
|
<!ENTITY lxml-time "2.4 SBU (add 2.3 SBU for the testsuites)">
|
|
]>
|
|
|
|
<!-- 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>
|
|
|
|
&lfs84_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 &&
|
|
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.
|
|
Seven tests are known to fail due to a missing file.
|
|
</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 &&
|
|
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 -->
|