source: general/prog/python-modules/libxml2py2.xml@ 53d92c8

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 53d92c8 was 53d92c8, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

alphabetize python modules page

  • Property mode set to 100644
File size: 5.7 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 "f9edac7fac232b3657a003fd9a5bbe42">
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 &lfs112_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 <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
100<screen><userinput>./configure PYTHON=python2 &amp;&amp;
101cd python &amp;&amp;
102python2 setup.py build</userinput></screen>
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
110<screen role="root"><userinput>python2 setup.py install --optimize=1</userinput></screen>
111
112 </sect3>
113
114 <sect3 role="content">
115 <title>Contents</title>
116
117 <segmentedlist>
118 <segtitle>Installed Modules</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>
144 is a SAX <application>Python2</application> driver for libxml2
145 </para>
146 <indexterm zone="libxml2py2 drv_libxml2.py2">
147 <primary sortas="b-drv_libxml2.py2">drv_libxml2.py for Python2</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="libxml2.py2">
153 <term><command>libxml2.py</command></term>
154 <listitem>
155 <para>
156 is the <application>Python2</application> binding for libxml2
157 </para>
158 <indexterm zone="libxml2py2 libxml2.py2">
159 <primary sortas="b-libxml2.py2">libxml2.py for Python2</primary>
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>
169 to use <filename class="libraryfile">libxml2.so</filename>
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>
Note: See TracBrowser for help on using the repository browser.