[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 " ">
|
---|
[55abe72] | 9 | <!ENTITY lxml-md5sum "c30d7e752cc909c1c0c40bd34153443a">
|
---|
| 10 | <!ENTITY lxml-size "4.1 MB">
|
---|
| 11 | <!ENTITY lxml-buildsize "154 MB (plus 31 MB for the testsuite without optional deps)">
|
---|
| 12 | <!ENTITY lxml-time "1.5 SBU (plus 1.7 SBU for the testsuite without optional deps)">
|
---|
[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 |
|
---|
[35e9ca45] | 33 | &lfs81_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>
|
---|
| 75 |
|
---|
[55abe72] | 76 | <bridgehead renderas="sect5">Optional (to run more tests)</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
| 78 | <xref linkend="gdb"/>
|
---|
| 79 | <xref linkend="valgrind"/>
|
---|
| 80 | <ulink url="&pypi;/cssselect/">cssselect</ulink>
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
[23e36d1] | 83 | <para condition="html" role="usernotes">
|
---|
| 84 | User Notes: <ulink url="&blfs-wiki;/lxml"/>
|
---|
| 85 | </para>
|
---|
| 86 | </sect3>
|
---|
| 87 |
|
---|
| 88 | <sect3 role="installation">
|
---|
| 89 | <title>Installation of lxml</title>
|
---|
| 90 |
|
---|
| 91 | <note>
|
---|
| 92 | <para>
|
---|
| 93 | Both <application>Python 2</application> and
|
---|
| 94 | <application>Python 3</application> modules can
|
---|
| 95 | be built and installed without any conflicts.
|
---|
| 96 | </para>
|
---|
| 97 | </note>
|
---|
| 98 |
|
---|
| 99 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
| 100 |
|
---|
[55abe72] | 101 | <para>
|
---|
| 102 | To build the <application>Python 2</application> module, run:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput>python setup.py build</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>
|
---|
| 108 | If you wish to run the tests, enter: <command>make test</command>.
|
---|
| 109 | This will rebuild the package for inplace use before running the tests.
|
---|
[2a50bcd] | 110 | One or more tests sometimes fail.
|
---|
[55abe72] | 111 | </para>
|
---|
| 112 |
|
---|
[23e36d1] | 113 | <para>
|
---|
| 114 | To install the <application>Python 2</application> module,
|
---|
[55abe72] | 115 | as the
|
---|
| 116 | <systemitem class="username">root</systemitem> user run:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | To build the <application>Python 3</application> module, run:
|
---|
[23e36d1] | 123 | </para>
|
---|
| 124 |
|
---|
[55abe72] | 125 | <screen><userinput>python3 setup.py clean &&
|
---|
| 126 | python3 setup.py build</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | If you wish to run the tests, enter: <command>make PYTHON=python3
|
---|
| 130 | test</command>. This will rebuild the package for inplace use before
|
---|
[2a50bcd] | 131 | running the tests. One or more tests sometimes fail.
|
---|
[55abe72] | 132 | </para>
|
---|
[23e36d1] | 133 |
|
---|
| 134 | <para>
|
---|
| 135 | To install the <application>Python 3</application> module,
|
---|
[55abe72] | 136 | as the
|
---|
| 137 | <systemitem class="username">root</systemitem> user run:
|
---|
[23e36d1] | 138 | </para>
|
---|
| 139 |
|
---|
[55abe72] | 140 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
[23e36d1] | 141 |
|
---|
| 142 | </sect3>
|
---|
| 143 |
|
---|
| 144 | <sect3 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>
|
---|
| 154 | None
|
---|
| 155 | </seg>
|
---|
| 156 | <seg>
|
---|
| 157 | None
|
---|
| 158 | </seg>
|
---|
| 159 | <seg>
|
---|
[55abe72] | 160 | /usr/lib/python&python2-majorver;/site-packages/lxml,
|
---|
| 161 | /usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg-info
|
---|
[23e36d1] | 162 | and/or
|
---|
[55abe72] | 163 | /usr/lib/python&python3-majorver;/site-packages/lxml,
|
---|
| 164 | /usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg-info
|
---|
[23e36d1] | 165 | </seg>
|
---|
| 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
| 168 |
|
---|
| 169 | </sect3>
|
---|
| 170 |
|
---|
| 171 | </sect2>
|
---|
| 172 | <!--End lxml -->
|
---|