source: general/prog/python2.xml@ 0c927ec

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0c927ec was adf6dd9a, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Archive unneeded packages: pkgconfig,

bc, ibus, udev, slib, gamin, and notify-python

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12015 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.1 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 <!ENTITY python2-download-http
8 "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz">
9 <!ENTITY python2-download-ftp " ">
10 <!ENTITY python2-md5sum "5eea8462f69ab1369d32f9c4cd6272ab">
11 <!ENTITY python2-size "9.8 MB">
12 <!ENTITY python2-buildsize "235 MB">
13 <!ENTITY python2-time "1.0 SBU">
14
15 <!ENTITY python2htmldoc-download-http
16 "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2">
17 <!ENTITY python2htmldoc-md5sum "77ae8fd6b456c6339a1a62d57425335b">
18 <!ENTITY python2htmldoc-size "4.3 MB">
19]>
20
21<sect1 id="python2" xreflabel="Python-&python2-version;">
22 <?dbhtml filename="python2.html" ?>
23
24 <sect1info>
25 <othername>$LastChangedBy$</othername>
26 <date>$Date$</date>
27 </sect1info>
28
29 <title>Python-&python2-version;</title>
30
31 <indexterm zone="python2">
32 <primary sortas="a-Python2">Python2</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to Python 2</title>
37
38 <para>
39 The <application>Python 2</application> package contains the
40 <application>Python</application> development environment. It is useful
41 for object-oriented programming, writing scripts, prototyping large
42 programs or developing entire applications. This version is for backward
43 compatibility with other dependent packages.
44 </para>
45
46 &lfs74_checked;
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>
52 Download (HTTP): <ulink url="&python2-download-http;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download (FTP): <ulink url="&python2-download-ftp;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download MD5 sum: &python2-md5sum;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download size: &python2-size;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated disk space required: &python2-buildsize;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated build time: &python2-time;
78 </para>
79 </listitem>
80 </itemizedlist>
81
82 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
83
84 <itemizedlist spacing="compact">
85 <title>Optional HTML Documentation</title>
86 <listitem>
87 <para>
88 Download (HTTP): <ulink url="&python2htmldoc-download-http;"/>
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Download MD5 sum: &python2htmldoc-md5sum;
94 </para>
95 </listitem>
96 <listitem>
97 <para>
98 Download size: &python2htmldoc-size;
99 </para>
100 </listitem>
101 </itemizedlist>
102
103 <bridgehead renderas="sect3">Python 2 Dependencies</bridgehead>
104
105 <bridgehead renderas="sect4">Recommended</bridgehead>
106 <para role="recommended">
107 <xref linkend="expat"/> and
108 <xref linkend="libffi"/>
109 </para>
110
111 <bridgehead renderas="sect4">Optional</bridgehead>
112 <para role="optional">
113 <xref linkend="bluez"/>
114 </para>
115
116 <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead>
117 <para role="optional">
118 <xref linkend="db"/>,
119 <xref linkend="openssl"/>,
120 <xref linkend="sqlite"/> and
121 <xref linkend="tk"/>
122 </para>
123
124 <para condition="html" role="usernotes">
125 User Notes: <ulink url="&blfs-wiki;/Python"/>
126 </para>
127 </sect2>
128
129 <sect2 role="installation">
130 <title>Installation of Python 2</title>
131
132 <para>
133 Install <application>Python 2</application> by running the following
134 commands:
135 </para>
136
137<screen><userinput>./configure --prefix=/usr \
138 --enable-shared \
139 --with-system-expat \
140 --with-system-ffi \
141 --enable-unicode=ucs4 &amp;&amp;
142make</userinput></screen>
143
144 <para>
145 To test the results, issue: <command>make test</command>.
146 </para>
147
148 <para>
149 Now, as the <systemitem class="username">root</systemitem> user:
150 </para>
151
152<screen role="root"><userinput>make install &amp;&amp;
153chmod -v 755 /usr/lib/libpython&python2-majorver;.so.1.0</userinput></screen>
154
155 <para>
156 If you have downloaded the preformatted documentation from
157 <ulink url="http://docs.python.org/download.html"/>, install it
158 as the <systemitem class="username">root</systemitem> user:
159 </para>
160
161<screen role="root"><userinput>install -v -dm755 /usr/share/doc/python-&python2-version; &amp;&amp;
162tar --strip-components=1 -C /usr/share/doc/python-&python2-version; \
163 -xvf ../python-&python2-version;-docs-html.tar.bz2 &amp;&amp;
164find /usr/share/doc/python-&python2-version; -type d -exec chmod 0755 {} \; &amp;&amp;
165find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</userinput></screen>
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
171 <para>
172 <option>--with-system-expat</option>: This switch enables linking against
173 system version of <application>Expat</application>. Remove if you have
174 not installed <xref linkend="expat"/>.
175 </para>
176
177 <para>
178 <option>--with-system-ffi</option>: This switch enables linking against
179 system version of <application>libffi</application>. Remove if you have
180 not installed <xref linkend="libffi"/>.
181 </para>
182
183 <para>
184 <parameter>--enable-unicode=ucs4</parameter>: This switch enables
185 32bit Unicode support in <application>Python</application>.
186 </para>
187
188 <para>
189 <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch
190 if you want to build <application>Python</application> DBM Module
191 against <application>Berkeley DB</application> instead of
192 <application>GDBM</application>.
193 </para>
194
195 <para>
196 <command>chmod ...</command>: Fix permissions for libraries to be
197 consistent with other libraries.
198 </para>
199
200 </sect2>
201
202 <sect2 role="configuration">
203 <title>Configuring Python 2</title>
204
205 <para>
206 In order for <command>python</command> to find the installed
207 documentation, you must add the following environment variable to
208 individual user's or the system's profile:
209 </para>
210
211<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python2-version;</userinput></screen>
212
213 </sect2>
214
215 <sect2 role="content">
216 <title>Contents</title>
217
218 <segmentedlist>
219 <segtitle>Installed Programs</segtitle>
220 <segtitle>Installed Library</segtitle>
221 <segtitle>Installed Directories</segtitle>
222
223 <seglistitem>
224 <seg>
225 2to3, pydoc, python, python-config, python2, python2-config,
226 python&python2-majorver;, python&python2-majorver;-config,
227 smtpd.py, and optionally if <application>Tk</application>
228 is installed, idle
229 </seg>
230 <seg>
231 libpython&python2-majorver;.so
232 </seg>
233 <seg>
234 /usr/include/python&python2-majorver;,
235 /usr/lib/python&python2-majorver;, and
236 /usr/share/doc/python-&python2-version;</seg>
237 </seglistitem>
238 </segmentedlist>
239
240 <variablelist>
241 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
242 <?dbfo list-presentation="list"?>
243 <?dbhtml list-presentation="table"?>
244
245 <varlistentry id="python2-2to3">
246 <term><command>2to3</command></term>
247 <listitem>
248 <para>
249 is a <application>Python</application> program that reads
250 <application>Python 2.x</application> source code and applies a series of
251 fixers to transform it into valid <application>Python 3.x</application>
252 code.
253 </para>
254 <indexterm zone="python2 python2-2to3">
255 <primary sortas="b-2to3">2to3</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="idle">
261 <term><command>idle</command></term>
262 <listitem>
263 <para>
264 is a wrapper script that opens a <application>Python</application>
265 aware GUI editor.
266 </para>
267 <indexterm zone="python2 idle">
268 <primary sortas="b-idle">idle</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="pydoc2">
274 <term><command>pydoc</command></term>
275 <listitem>
276 <para>
277 is the <application>Python</application> documentation tool.
278 </para>
279 <indexterm zone="python2 pydoc2">
280 <primary sortas="b-pydoc2">pydoc</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="python">
286 <term><command>python</command></term>
287 <listitem>
288 <para>
289 is an interpreted, interactive, object-oriented programming
290 language.
291 </para>
292 <indexterm zone="python2 python">
293 <primary sortas="b-python2">python</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="python2-ver">
299 <term><command>python&python2-majorver;</command></term>
300 <listitem>
301 <para>
302 is a version-specific name for the <command>python</command>
303 program.
304 </para>
305 <indexterm zone="python2 python2-ver">
306 <primary sortas="b-python&python2-majorver;">python&python2-majorver;</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="smtpd.py">
312 <term><command>smtpd.py</command></term>
313 <listitem>
314 <para>
315 is an SMTP proxy implemented in <application>Python</application>.
316 </para>
317 <indexterm zone="python2 smtpd.py">
318 <primary sortas="b-smtpd.py">smtpd.py</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 </variablelist>
324
325 </sect2>
326
327</sect1>
Note: See TracBrowser for help on using the repository browser.