source: general/prog/python3.xml@ 21e8edc

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 21e8edc was 21e8edc, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to Python-3.3.3.

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

  • Property mode set to 100644
File size: 10.2 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 "4ca001c5586eb0744e3174bc75c6fba8">
11 <!ENTITY python3-size "12 MB">
12 <!ENTITY python3-buildsize "224 MB (additional 35 MB for the docs and
13 35 MB for the tests)">
14 <!ENTITY python3-time "1.1 SBU (additional 1.4 SBU for the tests)">
15
16 <!ENTITY python3htmldoc-download-http
17 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">
18 <!ENTITY python3htmldoc-md5sum "ed20d57923a9f76f62f6122aa12be08f">
19 <!ENTITY python3htmldoc-size "4.8 MB">
20]>
21
22<sect1 id="python3" xreflabel="Python-&python3-version;">
23 <?dbhtml filename="python3.html" ?>
24
25 <sect1info>
26 <othername>$LastChangedBy$</othername>
27 <date>$Date$</date>
28 </sect1info>
29
30 <title>Python-&python3-version;</title>
31
32 <indexterm zone="python3">
33 <primary sortas="a-Python3">Python3</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to Python 3</title>
38
39 <para>
40 The <application>Python 3</application> package contains the
41 <application>Python</application> development environment.
42 This is useful for object-oriented programming, writing scripts,
43 prototyping large programs or developing entire applications.
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="&python3-download-http;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download (FTP): <ulink url="&python3-download-ftp;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download MD5 sum: &python3-md5sum;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download size: &python3-size;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated disk space required: &python3-buildsize;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated build time: &python3-time;
78 </para>
79 </listitem>
80 </itemizedlist>
81
82 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
83 <itemizedlist spacing="compact">
84 <title>Optional HTML Documentation</title>
85 <listitem>
86 <para>
87 Download (HTTP): <ulink url="&python3htmldoc-download-http;"/>
88 </para>
89 </listitem>
90 <listitem>
91 <para>
92 Download MD5 sum: &python3htmldoc-md5sum;
93 </para>
94 </listitem>
95 <listitem>
96 <para>
97 Download size: &python3htmldoc-size;
98 </para>
99 </listitem>
100 </itemizedlist>
101
102 <bridgehead renderas="sect3">Python 3 Dependencies</bridgehead>
103
104 <bridgehead renderas="sect4">Recommended</bridgehead>
105 <para role="recommended">
106 <xref linkend="expat"/> and
107 <xref linkend="libffi"/>
108 </para>
109
110 <bridgehead renderas="sect4">Optional</bridgehead>
111 <para role="optional">
112 <xref linkend="bluez"/> 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 To test the results, issue: <command>make -k test</command>. One test
145 (test_gdb) has been reported to fail.
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&python3-majorver;m.so &amp;&amp;
154chmod -v 755 /usr/lib/libpython3.so</userinput></screen>
155
156 <para>
157 If you have downloaded the preformatted documentation from
158 <ulink url="http://docs.python.org/download.html"/>, install it
159 as the <systemitem class="username">root</systemitem> user:
160 </para>
161
162<screen role="root"><userinput>install -v -dm755 /usr/share/doc/python-&python3-version;/html &amp;&amp;
163tar --strip-components=1 \
164 --no-same-owner \
165 --no-same-permissions \
166 -C /usr/share/doc/python-&python3-version;/html \
167 -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
168
169 </sect2>
170
171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
174 <para>
175 <option>--with-system-expat</option>: This switch enables linking against
176 system version of <application>Expat</application>. Remove if you have
177 not installed recommended dependency <xref linkend="expat"/>.
178 </para>
179
180 <para>
181 <option>--with-system-ffi</option>: This switch enables linking against
182 system version of <application>libffi</application>. Remove if you have
183 not installed recommended dependency <xref linkend="libffi"/>.
184 </para>
185
186 <para>
187 <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch
188 if you want to build <application>Python</application> DBM Module
189 against <application>Berkeley DB</application> instead of
190 <application>GDBM</application>.
191 </para>
192
193 <para>
194 <command>chmod ...</command>: Fix permissions for shared libraries to be
195 consistent with other libraries.
196 </para>
197
198 </sect2>
199
200 <sect2 role="configuration">
201 <title>Configuring Python 3</title>
202
203 <para>
204 In order for <command>python3</command> to find the installed
205 documentation, you must add the following environment variable to
206 individual user's or the system's profile:
207 </para>
208
209<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen>
210
211 </sect2>
212
213 <sect2 role="content">
214 <title>Contents</title>
215
216 <segmentedlist>
217 <segtitle>Installed Programs</segtitle>
218 <segtitle>Installed Libraries</segtitle>
219 <segtitle>Installed Directories</segtitle>
220
221 <seglistitem>
222 <seg>
223 2to3 (symbolic link to 2to3-&python3-majorver;),
224 2to3-&python3-majorver;,
225
226 pydoc3 (symbolic link to pydoc&python3-majorver;),
227 pydoc&python3-majorver;,
228
229 python3 (symbolic link to python&python3-majorver;),
230 python&python3-majorver; (hard link to python&python3-majorver;m),
231 python&python3-majorver;m,
232
233 python3-config (symbolic link to python&python3-majorver;-config),
234 python&python3-majorver;-config (symbolic link to python3m-config),
235 python&python3-majorver;m-config,
236
237 pyvenv (symbolic link to pyvenv&python3-majorver;),
238 pyvenv&python3-majorver;,
239
240 and optionally, if Tk is installed,
241 idle3 (symbolic link to idle&python3-majorver;) and
242 idle&python3-majorver;
243 </seg>
244 <seg>
245 libpython&python3-majorver;m.so and libpython3.so
246 </seg>
247 <seg>
248 /usr/include/python&python3-majorver;m,
249 /usr/lib/python&python3-majorver;, and
250 /usr/share/doc/python-&python3-version;
251 </seg>
252 </seglistitem>
253 </segmentedlist>
254
255 <variablelist>
256 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
257 <?dbfo list-presentation="list"?>
258 <?dbhtml list-presentation="table"?>
259
260 <varlistentry id="idle3">
261 <term><command>idle3</command></term>
262 <listitem>
263 <para>
264 is a wrapper script that opens a
265 <application>Python</application> aware GUI editor.
266 </para>
267 <indexterm zone="python3 idle3">
268 <primary sortas="b-idle3">idle3</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="pydoc3">
274 <term><command>pydoc3</command></term>
275 <listitem>
276 <para>
277 is the <application>Python</application> documentation
278 tool.
279 </para>
280 <indexterm zone="python3 pydoc3">
281 <primary sortas="b-pydoc3">pydo3c</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="python3-prog">
287 <term><command>python3</command></term>
288 <listitem>
289 <para>
290 is an interpreted, interactive, object-oriented programming
291 language.
292 </para>
293 <indexterm zone="python3 python3-prog">
294 <primary sortas="b-python3">python3</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="python-ver">
300 <term><command>python&python3-majorver;</command></term>
301 <listitem>
302 <para>
303 is a version-specific name for the <command>python</command>
304 program.
305 </para>
306 <indexterm zone="python3 python-ver">
307 <primary
308 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="pyvenv">
314 <term><command>pyvenv</command></term>
315 <listitem>
316 <para>
317 creates virtual <application>Python</application> environments in
318 one or more target directories.
319 </para>
320 <indexterm zone="python3 pyvenv">
321 <primary
322 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 </variablelist>
328
329 </sect2>
330
331</sect1>
Note: See TracBrowser for help on using the repository browser.