source: general/prog/python3.xml@ a45ebfa4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 a45ebfa4 was a45ebfa4, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Updates to Lynx 2.8.8rel.2, Python-3.3.5, MesaLib-10.1.0 and samba-4.1.5. Fix md5sum of mercurial-2.9.1.tar.gz.

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

  • Property mode set to 100644
File size: 10.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 <!ENTITY python3-download-http
8 "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz">
9 <!ENTITY python3-download-ftp " ">
10 <!ENTITY python3-md5sum "b2a4df195d934e5b229e8328ca864960">
11 <!ENTITY python3-size "12 MB">
12 <!ENTITY python3-buildsize "261 MB (226 MB without docs or 144 MB for the tests)">
13 <!ENTITY python3-time "1.0 SBU (or 2.2 SBU for the tests)">
14
15 <!ENTITY python3htmldoc-download-http
16 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">
17 <!ENTITY python3htmldoc-md5sum "71495f2214dc43a7c24d9a562f45b5ea">
18 <!ENTITY python3htmldoc-size "4.8 MB">
19]>
20
21<sect1 id="python3" xreflabel="Python-&python3-version;">
22 <?dbhtml filename="python3.html" ?>
23
24 <sect1info>
25 <othername>$LastChangedBy$</othername>
26 <date>$Date$</date>
27 </sect1info>
28
29 <title>Python-&python3-version;</title>
30
31 <indexterm zone="python3">
32 <primary sortas="a-Python3">Python3</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to Python 3</title>
37
38 <para>
39 The <application>Python 3</application> package contains the
40 <application>Python</application> development environment.
41 This is useful for object-oriented programming, writing scripts,
42 prototyping large programs or developing entire applications.
43 </para>
44
45 &lfs75_checked;
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>
51 Download (HTTP): <ulink url="&python3-download-http;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download (FTP): <ulink url="&python3-download-ftp;"/>
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download MD5 sum: &python3-md5sum;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Download size: &python3-size;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated disk space required: &python3-buildsize;
72 </para>
73 </listitem>
74 <listitem>
75 <para>
76 Estimated build time: &python3-time;
77 </para>
78 </listitem>
79 </itemizedlist>
80
81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
82 <itemizedlist spacing="compact">
83 <title>Optional HTML Documentation</title>
84 <listitem>
85 <para>
86 Download (HTTP): <ulink url="&python3htmldoc-download-http;"/>
87 </para>
88 </listitem>
89 <listitem>
90 <para>
91 Download MD5 sum: &python3htmldoc-md5sum;
92 </para>
93 </listitem>
94 <listitem>
95 <para>
96 Download size: &python3htmldoc-size;
97 </para>
98 </listitem>
99 </itemizedlist>
100
101 <bridgehead renderas="sect3">Python 3 Dependencies</bridgehead>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
105 <xref linkend="expat"/> and
106 <xref linkend="libffi"/>
107 </para>
108
109 <bridgehead renderas="sect4">Optional</bridgehead>
110 <para role="optional">
111 <xref linkend="bluez"/>,
112 <xref linkend="gdb"/> (required for some tests), and
113 <ulink url="http://www.valgrind.org/">Valgrind</ulink>
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">User Notes:
125 <ulink url="&blfs-wiki;/Python3"/>
126 </para>
127 </sect2>
128
129 <sect2 role="installation">
130 <title>Installation of Python 3</title>
131
132 <para>
133 Install <application>Python 3</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 &amp;&amp;
141make</userinput></screen>
142
143 <para>
144 The test suite must be run separately, using an X terminal (see below).
145 </para>
146
147 <para>
148 Now, as the <systemitem class="username">root</systemitem> user:
149 </para>
150
151<screen role="root"><userinput>make install &amp;&amp;
152chmod -v 755 /usr/lib/libpython&python3-majorver;m.so &amp;&amp;
153chmod -v 755 /usr/lib/libpython3.so</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-&python3-version;/html &amp;&amp;
162tar --strip-components=1 \
163 --no-same-owner \
164 --no-same-permissions \
165 -C /usr/share/doc/python-&python3-version;/html \
166 -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
167
168 <para>
169 The test suite must be run separately from the build, either before or
170 after the package is built and installed. Do not run
171 <command>make install</command>, after running the test suite. To build
172 and install the package, you need to start with a fresh or clean source
173 tree. For the test, you also need a clean source code, so either start by
174 removing the source code directory and starting over, by uncompressing
175 the source tarball or by running <command>make clean</command>. Then
176 configure again, adding <quote>--with-pydebug</quote> to the
177 <command>configure</command> switches above, run <command>make</command>,
178 then <command>make test</command>. Remember that some tests fail, if not
179 run in an X terminal.
180 </para>
181
182 </sect2>
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
187 <para>
188 <option>--with-system-expat</option>: This switch enables linking against
189 system version of <application>Expat</application>. Remove if you have
190 not installed recommended dependency <xref linkend="expat"/>.
191 </para>
192
193 <para>
194 <option>--with-system-ffi</option>: This switch enables linking against
195 system version of <application>libffi</application>. Remove if you have
196 not installed recommended dependency <xref linkend="libffi"/>.
197 </para>
198
199 <para>
200 <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch
201 if you want to build <application>Python</application> DBM Module
202 against <application>Berkeley DB</application> instead of
203 <application>GDBM</application>.
204 </para>
205
206 <para>
207 <command>chmod ...</command>: Fix permissions for shared libraries to be
208 consistent with other libraries.
209 </para>
210
211 </sect2>
212
213 <sect2 role="configuration">
214 <title>Configuring Python 3</title>
215
216 <para>
217 In order for <command>python3</command> to find the installed
218 documentation, you must add the following environment variable to
219 individual user's or the system's profile:
220 </para>
221
222<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen>
223
224 </sect2>
225
226 <sect2 role="content">
227 <title>Contents</title>
228
229 <segmentedlist>
230 <segtitle>Installed Programs</segtitle>
231 <segtitle>Installed Libraries</segtitle>
232 <segtitle>Installed Directories</segtitle>
233
234 <seglistitem>
235 <seg>
236 2to3 (symlink),
237 2to3-&python3-majorver;,
238
239 pydoc3 (symlink),
240 pydoc&python3-majorver;,
241
242 python3 (symlink);
243 python&python3-majorver; and python&python3-majorver;m (hardlinked);
244
245 python3-config (symlink),
246 python&python3-majorver;-config (symlink),
247 python&python3-majorver;m-config,
248
249 pyvenv (symlink),
250 pyvenv&python3-majorver;,
251
252 and optionally, if Tk is installed,
253 idle3 (symlink) and
254 idle&python3-majorver;
255 </seg>
256 <seg>
257 libpython&python3-majorver;m.so and libpython3.so;
258 several under /usr/lib/python3.3/lib-dynload/
259 </seg>
260 <seg>
261 /usr/include/python&python3-majorver;m,
262 /usr/lib/python&python3-majorver;, and
263 /usr/share/doc/python-&python3-version;
264 </seg>
265 </seglistitem>
266 </segmentedlist>
267
268 <variablelist>
269 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
270 <?dbfo list-presentation="list"?>
271 <?dbhtml list-presentation="table"?>
272
273 <varlistentry id="idle3">
274 <term><command>idle3</command></term>
275 <listitem>
276 <para>
277 is a wrapper script that opens a
278 <application>Python</application> aware GUI editor.
279 </para>
280 <indexterm zone="python3 idle3">
281 <primary sortas="b-idle3">idle3</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="pydoc3">
287 <term><command>pydoc3</command></term>
288 <listitem>
289 <para>
290 is the <application>Python</application> documentation
291 tool.
292 </para>
293 <indexterm zone="python3 pydoc3">
294 <primary sortas="b-pydoc3">pydo3c</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="python3-prog">
300 <term><command>python3</command></term>
301 <listitem>
302 <para>
303 is an interpreted, interactive, object-oriented programming
304 language.
305 </para>
306 <indexterm zone="python3 python3-prog">
307 <primary sortas="b-python3">python3</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="python-ver">
313 <term><command>python&python3-majorver;</command></term>
314 <listitem>
315 <para>
316 is a version-specific name for the <command>python</command>
317 program.
318 </para>
319 <indexterm zone="python3 python-ver">
320 <primary
321 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="pyvenv">
327 <term><command>pyvenv</command></term>
328 <listitem>
329 <para>
330 creates virtual <application>Python</application> environments in
331 one or more target directories.
332 </para>
333 <indexterm zone="python3 pyvenv">
334 <primary
335 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 </variablelist>
341
342 </sect2>
343
344</sect1>
Note: See TracBrowser for help on using the repository browser.