[8f31479b] | 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 |
|
---|
| 7 | <!-- The download, md5sum, size entities need to match those used in libxml2.xml -->
|
---|
[f91eb040] | 8 | <!ENTITY libxml2py2-download-http "https://download.gnome.org/sources/libxml2/2.9/libxml2-&libxml2-version;.tar.xz">
|
---|
| 9 | <!ENTITY libxml2py2-download-ftp " ">
|
---|
[0a73ebad] | 10 | <!ENTITY libxml2py2-md5sum "b7b3029ac6beb32a7925225515f83ca3">
|
---|
| 11 | <!ENTITY libxml2py2-size "3.0 MB">
|
---|
[df013c7f] | 12 | <!ENTITY libxml2py2-buildsize "53 MB (2.3 MB installed)">
|
---|
[8f31479b] | 13 | <!ENTITY libxml2py2-time "less than 0.1 SBU">
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <!-- Begin libxml2py2 -->
|
---|
[fb4fe20] | 17 | <sect2 id="libxml2py2" xreflabel="Python2 libxml2-&libxml2-version; module">
|
---|
[8f31479b] | 18 |
|
---|
| 19 | <title>libxml2-&libxml2-version; (for its Python2 module)</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libxml2py2">
|
---|
| 22 | <primary sortas="a-libxml2py2">libxml2</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect3 role="package">
|
---|
| 26 | <title>Introduction to the libxml2 Python2 module</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | These instructions provide the <application>Python2</application>
|
---|
| 30 | bindings for <application>libxml2</application>: the
|
---|
| 31 | <application>Python3</application> bindings are built as part of <xref
|
---|
| 32 | linkend="libxml2"/> and most packages in the book do not use these
|
---|
| 33 | bindings for the older <application>Python2</application>.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
| 36 | <para>
|
---|
[f14e2d99] | 37 | By building these bindings after <xref linkend="libxml2"/> has
|
---|
[8f31479b] | 38 | been installed, there is no need to rebuild the time-consuming (if all
|
---|
| 39 | dependencies are used) main part of that package.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
[03a2986] | 42 | &lfs111_checked;
|
---|
[8f31479b] | 43 |
|
---|
| 44 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&libxml2py2-download-http;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&libxml2py2-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download MD5 sum: &libxml2py2-md5sum;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Download size: &libxml2py2-size;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated disk space required: &libxml2py2-buildsize;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>
|
---|
| 73 | Estimated build time: &libxml2py2-time;
|
---|
| 74 | </para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">libxml2 (Python2) Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 81 | <para role="required">
|
---|
| 82 | <xref linkend="libxml2"/> and
|
---|
| 83 | <xref linkend="python2"/>
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <para condition="html" role="usernotes">
|
---|
| 87 | User Notes: <ulink url="&blfs-wiki;/libxml2"/>
|
---|
| 88 | </para>
|
---|
| 89 | </sect3>
|
---|
| 90 |
|
---|
| 91 | <sect3 role="installation">
|
---|
| 92 | <title>Installation of libxml2 Python2 module</title>
|
---|
| 93 |
|
---|
| 94 | <!-- Editors note: Use \-\-root= instead of DESTDIR= when updating. -->
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | To build the <application>Python 2</application> module, run:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
[9eb12e50] | 100 | <screen><userinput>cd python &&
|
---|
| 101 | sed -i 's/ModuleNotFoundError/ImportError/' setup.py &&
|
---|
[77deb22e] | 102 | python2 setup.py build</userinput></screen>
|
---|
[8f31479b] | 103 |
|
---|
| 104 | <para>
|
---|
| 105 | To install the <application>Python 2</application> module,
|
---|
| 106 | as the
|
---|
| 107 | <systemitem class="username">root</systemitem> user run:
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
[77deb22e] | 110 | <screen role="root"><userinput>python2 setup.py install --optimize=1</userinput></screen>
|
---|
[8f31479b] | 111 |
|
---|
| 112 | </sect3>
|
---|
| 113 |
|
---|
| 114 | <sect3 role="content">
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
| 117 | <segmentedlist>
|
---|
| 118 | <segtitle>Installed Programs</segtitle>
|
---|
| 119 | <segtitle>Installed Libraries</segtitle>
|
---|
| 120 | <segtitle>Installed Directories</segtitle>
|
---|
| 121 |
|
---|
| 122 | <seglistitem>
|
---|
| 123 | <seg>
|
---|
| 124 | drv_libxml2.py, libxml2.py
|
---|
| 125 | </seg>
|
---|
| 126 | <seg>
|
---|
| 127 | libxml2mod.so
|
---|
| 128 | </seg>
|
---|
| 129 | <seg>
|
---|
| 130 | None
|
---|
| 131 | </seg>
|
---|
| 132 | </seglistitem>
|
---|
| 133 | </segmentedlist>
|
---|
| 134 |
|
---|
| 135 | <variablelist>
|
---|
| 136 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 137 | <?dbfo list-presentation="list"?>
|
---|
| 138 | <?dbhtml list-presentation="table"?>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="drv_libxml2.py2">
|
---|
| 141 | <term><command>drv_libxml2.py</command></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>
|
---|
[4c24eb0a] | 144 | is a SAX <application>Python2</application> driver for libxml2
|
---|
[8f31479b] | 145 | </para>
|
---|
| 146 | <indexterm zone="libxml2py2 drv_libxml2.py2">
|
---|
[4f29081] | 147 | <primary sortas="b-drv_libxml2.py2">drv_libxml2.py for Python2</primary>
|
---|
[8f31479b] | 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="libxml2.py2">
|
---|
| 153 | <term><command>libxml2.py</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>
|
---|
[4c24eb0a] | 156 | is the <application>Python2</application> binding for libxml2
|
---|
[8f31479b] | 157 | </para>
|
---|
| 158 | <indexterm zone="libxml2py2 libxml2.py2">
|
---|
[4f29081] | 159 | <primary sortas="b-libxml2.py2">libxml2.py for Python2</primary>
|
---|
[8f31479b] | 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="libxml2mod2">
|
---|
| 165 | <term><filename class="libraryfile">libxml2mod.so</filename></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>
|
---|
| 168 | is the interface for <application>Python2</application>
|
---|
[4c24eb0a] | 169 | to use <filename class="libraryfile">libxml2.so</filename>
|
---|
[8f31479b] | 170 | </para>
|
---|
| 171 | <indexterm zone="libxml2py2 libxml2mod2">
|
---|
| 172 | <primary sortas="c-libxml2mod">libxml2mod.so</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | </variablelist>
|
---|
| 178 |
|
---|
| 179 | </sect3>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|