source: archive/libxml2py2.xml

trunk
Last change on this file was 2f1e634e, checked in by Xi Ruoyao <xry111@…>, 6 months ago

Archive libxml2py2

  • Property mode set to 100644
File size: 5.5 KB
Line 
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 -->
8 <!ENTITY libxml2py2-download-http "https://download.gnome.org/sources/libxml2/2.10/libxml2-&libxml2-version;.tar.xz">
9 <!ENTITY libxml2py2-download-ftp " ">
10 <!ENTITY libxml2py2-md5sum "76808c467a58c31e2dbd511e71d5fd13">
11 <!ENTITY libxml2py2-size "2.5 MB">
12 <!ENTITY libxml2py2-buildsize "49 MB (2.3 MB installed)">
13 <!ENTITY libxml2py2-time "less than 0.1 SBU">
14]>
15
16 <!-- Begin libxml2py2 -->
17 <sect2 id="libxml2py2" xreflabel="libxml2-&libxml2-version; python2 module">
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>
37 By building these bindings after <xref linkend="libxml2"/> has
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
42 &lfs120_checked;
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 </sect3>
87
88 <sect3 role="installation">
89 <title>Installation of libxml2 Python2 module</title>
90
91<!-- Editors note: Use \-\-root= instead of DESTDIR= when updating. -->
92
93 <para>
94 To build the <application>Python 2</application> module, run:
95 </para>
96
97<screen><userinput>./configure PYTHON=python2 &amp;&amp;
98cd python &amp;&amp;
99python2 setup.py build</userinput></screen>
100
101 <para>
102 To install the <application>Python 2</application> module,
103 as the
104 <systemitem class="username">root</systemitem> user run:
105 </para>
106
107<screen role="root"><userinput>python2 setup.py install --optimize=1</userinput></screen>
108
109 </sect3>
110
111 <sect3 role="content">
112 <title>Contents</title>
113
114 <segmentedlist>
115 <segtitle>Installed Modules</segtitle>
116 <segtitle>Installed Libraries</segtitle>
117 <segtitle>Installed Directories</segtitle>
118
119 <seglistitem>
120 <seg>
121 drv_libxml2.py, libxml2.py
122 </seg>
123 <seg>
124 libxml2mod.so
125 </seg>
126 <seg>
127 None
128 </seg>
129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="drv_libxml2.py2">
138 <term><command>drv_libxml2.py</command></term>
139 <listitem>
140 <para>
141 is a SAX <application>Python2</application> driver for libxml2
142 </para>
143 <indexterm zone="libxml2py2 drv_libxml2.py2">
144 <primary sortas="b-drv_libxml2.py2">drv_libxml2.py for Python2</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="libxml2.py2">
150 <term><command>libxml2.py</command></term>
151 <listitem>
152 <para>
153 is the <application>Python2</application> binding for libxml2
154 </para>
155 <indexterm zone="libxml2py2 libxml2.py2">
156 <primary sortas="b-libxml2.py2">libxml2.py for Python2</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="libxml2mod2">
162 <term><filename class="libraryfile">libxml2mod.so</filename></term>
163 <listitem>
164 <para>
165 is the interface for <application>Python2</application>
166 to use <filename class="libraryfile">libxml2.so</filename>
167 </para>
168 <indexterm zone="libxml2py2 libxml2mod2">
169 <primary sortas="c-libxml2mod">libxml2mod.so</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 </variablelist>
175
176 </sect3>
177
178 </sect2>
Note: See TracBrowser for help on using the repository browser.