mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
157 lines
4.6 KiB
XML
157 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 "ddb9f25a41ca5fb4f7d174a9d74bfa46">
|
|
<!ENTITY lxml-size "3.1 MB">
|
|
<!ENTITY lxml-buildsize "91 MB (add 20 MB for tests)">
|
|
<!ENTITY lxml-time "1.1 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>
|
|
|
|
&lfs111_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 --> the
|
|
<application>Python 3</application> module, run:
|
|
</para>
|
|
|
|
<screen><userinput>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 in-place use before running the tests.
|
|
<!--Several tests (32 of 1948) are known to fail with Python-3.10.1.-->
|
|
</para>
|
|
|
|
<para>
|
|
To install the module, issue the following command as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</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>
|