[23e36d1] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY lxml-download-http "&pymodules-dl;/l/lxml/lxml-&lxml-version;.tar.gz">
|
---|
[23e36d1] | 8 | <!ENTITY lxml-download-ftp " ">
|
---|
[0ed6f34] | 9 | <!ENTITY lxml-md5sum "7761ed3842697b4e1de83e47ee2242d8">
|
---|
| 10 | <!ENTITY lxml-size "3.1 MB">
|
---|
| 11 | <!ENTITY lxml-buildsize "78 MB (add 21 MB for tests)">
|
---|
| 12 | <!ENTITY lxml-time "1.0 SBU (add 0.7 SBU for tests)">
|
---|
[23e36d1] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin lxml -->
|
---|
[7d35ee59] | 16 | <sect2 id="lxml" xreflabel="lxml-&lxml-version;">
|
---|
[23e36d1] | 17 |
|
---|
| 18 | <title>lxml-&lxml-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="lxml">
|
---|
| 21 | <primary sortas="a-lxml">lxml</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to lxml</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>lxml</application> provides
|
---|
| 29 | <application>Python</application> bindings for
|
---|
| 30 | <xref linkend="libxslt"/> and <xref linkend="libxml2"/>.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[03a2986] | 33 | &lfs111_checked;
|
---|
[23e36d1] | 34 |
|
---|
| 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&lxml-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&lxml-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &lxml-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &lxml-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &lxml-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &lxml-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">lxml Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="libxslt"/>
|
---|
| 74 | </para>
|
---|
[9d43379c] | 75 | <!--
|
---|
[f6ee672] | 76 | <bridgehead renderas="sect5">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
| 78 | <xref linkend="python2"/>
|
---|
| 79 | </para>
|
---|
[9d43379c] | 80 | -->
|
---|
[55abe72] | 81 | <bridgehead renderas="sect5">Optional (to run more tests)</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[2219a24] | 83 | <xref linkend="gdb"/>,
|
---|
| 84 | <xref linkend="valgrind"/>, and
|
---|
[55abe72] | 85 | <ulink url="&pypi;/cssselect/">cssselect</ulink>
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
[23e36d1] | 88 | <para condition="html" role="usernotes">
|
---|
| 89 | User Notes: <ulink url="&blfs-wiki;/lxml"/>
|
---|
| 90 | </para>
|
---|
| 91 | </sect3>
|
---|
| 92 |
|
---|
| 93 | <sect3 role="installation">
|
---|
| 94 | <title>Installation of lxml</title>
|
---|
[9d43379c] | 95 | <!--
|
---|
[23e36d1] | 96 | <note>
|
---|
| 97 | <para>
|
---|
| 98 | Both <application>Python 2</application> and
|
---|
| 99 | <application>Python 3</application> modules can
|
---|
| 100 | be built and installed without any conflicts.
|
---|
| 101 | </para>
|
---|
| 102 | </note>
|
---|
[9d43379c] | 103 | -->
|
---|
[23e36d1] | 104 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
| 105 |
|
---|
[55abe72] | 106 | <para>
|
---|
[9d43379c] | 107 | To build <!--both <application>Python 2</application> and --> the
|
---|
| 108 | <application>Python 3</application> module, run:
|
---|
[55abe72] | 109 | </para>
|
---|
| 110 |
|
---|
[9d43379c] | 111 | <screen><userinput>python3 setup.py build</userinput></screen>
|
---|
[55abe72] | 112 |
|
---|
| 113 | <para>
|
---|
[77deb22e] | 114 | If you wish to run the tests, enter:
|
---|
| 115 | <command>make PYTHON=python3 test</command>.
|
---|
[55abe72] | 116 | This will rebuild the package for inplace use before running the tests.
|
---|
[0ed6f34] | 117 | Several tests (32 of 1948) are known to fail with Python-3.10.1.
|
---|
[55abe72] | 118 | </para>
|
---|
| 119 |
|
---|
[23e36d1] | 120 | <para>
|
---|
[9d43379c] | 121 | To install the module, issue the following command as the
|
---|
[77deb22e] | 122 | <systemitem class="username">root</systemitem> user:
|
---|
[23e36d1] | 123 | </para>
|
---|
| 124 |
|
---|
[9d43379c] | 125 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
[23e36d1] | 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
| 129 | <sect3 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
| 134 | <segtitle>Installed Libraries</segtitle>
|
---|
| 135 | <segtitle>Installed Directories</segtitle>
|
---|
| 136 |
|
---|
| 137 | <seglistitem>
|
---|
| 138 | <seg>
|
---|
| 139 | None
|
---|
| 140 | </seg>
|
---|
| 141 | <seg>
|
---|
| 142 | None
|
---|
| 143 | </seg>
|
---|
| 144 | <seg>
|
---|
[9d43379c] | 145 | <!-- /usr/lib/python&python2-majorver;/site-packages/lxml,
|
---|
[55abe72] | 146 | /usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg-info
|
---|
[9d43379c] | 147 | and/or -->
|
---|
[55abe72] | 148 | /usr/lib/python&python3-majorver;/site-packages/lxml,
|
---|
| 149 | /usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg-info
|
---|
[23e36d1] | 150 | </seg>
|
---|
| 151 | </seglistitem>
|
---|
| 152 | </segmentedlist>
|
---|
| 153 |
|
---|
| 154 | </sect3>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|