[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 " ">
|
---|
[ddea44e] | 9 | <!ENTITY lxml-md5sum "e54e2fae44d684d6b9c636fe189e93ff">
|
---|
[b76be140] | 10 | <!ENTITY lxml-size "3.6 MB">
|
---|
[ddea44e] | 11 | <!ENTITY lxml-buildsize "104 MB">
|
---|
[b76be140] | 12 | <!ENTITY lxml-time "1.3 SBU">
|
---|
[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 |
|
---|
[879932f] | 33 | &lfs80_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 |
|
---|
| 76 | <para condition="html" role="usernotes">
|
---|
| 77 | User Notes: <ulink url="&blfs-wiki;/lxml"/>
|
---|
| 78 | </para>
|
---|
| 79 | </sect3>
|
---|
| 80 |
|
---|
| 81 | <sect3 role="installation">
|
---|
| 82 | <title>Installation of lxml</title>
|
---|
| 83 |
|
---|
| 84 | <note>
|
---|
| 85 | <para>
|
---|
| 86 | Both <application>Python 2</application> and
|
---|
| 87 | <application>Python 3</application> modules can
|
---|
| 88 | be built and installed without any conflicts.
|
---|
| 89 | </para>
|
---|
| 90 | </note>
|
---|
| 91 |
|
---|
| 92 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
| 93 |
|
---|
| 94 | <para>
|
---|
| 95 | To install the <application>Python 2</application> module,
|
---|
| 96 | run the following commands as the
|
---|
| 97 | <systemitem class="username">root</systemitem> user:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen role="root"><userinput>python setup.py build &&
|
---|
| 101 | python setup.py install --optimize=1</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>
|
---|
| 104 | To install the <application>Python 3</application> module,
|
---|
| 105 | run the following commands as the
|
---|
| 106 | <systemitem class="username">root</systemitem> user:
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <screen role="root"><userinput>python3 setup.py clean &&
|
---|
| 110 | python3 setup.py build &&
|
---|
| 111 | python3 setup.py install --optimize=1</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect3>
|
---|
| 114 |
|
---|
| 115 | <sect3 role="content">
|
---|
| 116 | <title>Contents</title>
|
---|
| 117 |
|
---|
| 118 | <segmentedlist>
|
---|
| 119 | <segtitle>Installed Programs</segtitle>
|
---|
| 120 | <segtitle>Installed Libraries</segtitle>
|
---|
| 121 | <segtitle>Installed Directories</segtitle>
|
---|
| 122 |
|
---|
| 123 | <seglistitem>
|
---|
| 124 | <seg>
|
---|
| 125 | None
|
---|
| 126 | </seg>
|
---|
| 127 | <seg>
|
---|
| 128 | None
|
---|
| 129 | </seg>
|
---|
| 130 | <seg>
|
---|
| 131 | /usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg
|
---|
| 132 | and/or
|
---|
| 133 | /usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg
|
---|
| 134 | </seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | </sect3>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 | <!--End lxml -->
|
---|