source: general/prog/python3.xml@ 03d30cf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 03d30cf was 03d30cf, checked in by Krejzi <krejzi@…>, 11 years ago

Package updates.

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

  • Property mode set to 100644
File size: 9.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 <!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 "993232d9f4d9b4863cc1ec69a792e9cd">
11 <!ENTITY python3-size "12 MB">
12 <!ENTITY python3-buildsize "260 MB (not including the testsuite)">
13 <!ENTITY python3-time "1.2 SBU (not including the testsuite)">
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 "e730def6cc4d6dddb076aae82661b6d6">
18 <!ENTITY python3htmldoc-size "4.6 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 &lfs73_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"/>,
106 <xref linkend="libffi"/> and
107 <xref linkend="pkgconfig"/>
108 </para>
109
110 <bridgehead renderas="sect4">Optional</bridgehead>
111 <para role="optional">
112 <xref linkend="bluez"/>
113 </para>
114
115 <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead>
116 <para role="optional">
117 <xref linkend="db"/>,
118 <xref linkend="openssl"/>,
119 <xref linkend="sqlite"/> and
120 <xref linkend="tk"/>
121 </para>
122
123 <para condition="html" role="usernotes">User Notes:
124 <ulink url="&blfs-wiki;/Python3"/>
125 </para>
126 </sect2>
127
128 <sect2 role="installation">
129 <title>Installation of Python 3</title>
130
131 <para>
132 Install <application>Python 3</application> by running the following
133 commands:
134 </para>
135
136<screen><userinput>./configure --prefix=/usr \
137 --enable-shared \
138 --with-system-expat \
139 --with-system-ffi &amp;&amp;
140make</userinput></screen>
141
142 <para>
143 To test the results, issue: <command>make test</command>.
144 </para>
145
146 <para>
147 Now, as the <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role="root"><userinput>make install &amp;&amp;
151chmod -v 755 /usr/lib/libpython&python3-majorver;m.so &amp;&amp;
152chmod -v 755 /usr/lib/libpython3.so</userinput></screen>
153
154 <para>
155 If you have downloaded the preformatted documentation from
156 <ulink url="http://docs.python.org/download.html"/>, install it
157 as the <systemitem class="username">root</systemitem> user:
158 </para>
159
160<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/python-&python3-version;/html &amp;&amp;
161tar --strip-components=1 \
162 --no-same-owner \
163 --no-same-permissions \
164 -C /usr/share/doc/python-&python3-version;/html \
165 -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
166
167 </sect2>
168
169 <sect2 role="commands">
170 <title>Command Explanations</title>
171
172 <para>
173 <option>--with-system-expat</option>: This switch enables linking against
174 system version of <application>Expat</application>. Remove if you have
175 not installed recommended dependency <xref linkend="expat"/>.
176 </para>
177
178 <para>
179 <option>--with-system-ffi</option>: This switch enables linking against
180 system version of <application>libffi</application>. Remove if you have
181 not installed recommended dependency <xref linkend="libffi"/>.
182 </para>
183
184 <para>
185 <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch
186 if you want to build <application>Python</application> DBM Module
187 against <application>Berkeley DB</application> instead of
188 <application>GDBM</application>.
189 </para>
190
191 <para>
192 <command>chmod ...</command>: Fix permissions for shared libraries to be
193 consistent with other libraries.
194 </para>
195
196 </sect2>
197
198 <sect2 role="configuration">
199 <title>Configuring Python 3</title>
200
201 <para>
202 In order for <command>python3</command> to find the installed
203 documentation, you must add the following environment variable to
204 individual user's or the system's profile:
205 </para>
206
207<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen>
208
209 </sect2>
210
211 <sect2 role="content">
212 <title>Contents</title>
213
214 <segmentedlist>
215 <segtitle>Installed Programs</segtitle>
216 <segtitle>Installed Libraries</segtitle>
217 <segtitle>Installed Directories</segtitle>
218
219 <seglistitem>
220 <seg>
221 2to3 (symbolic link to 2to3-&python3-majorver;),
222 2to3-&python3-majorver;,
223
224 pydoc3 (symbolic link to pydoc&python3-majorver;),
225 pydoc&python3-majorver;,
226
227 python3 (hard link to python&python3-majorver;m),
228 python&python3-majorver; (hard link to python&python3-majorver;m),
229 python&python3-majorver;m,
230
231 python3-config (symbolic link to python&python3-majorver;-config),
232 python&python3-majorver;-config (symbolic link to python3-config),
233 python&python3-majorver;m-config,
234
235 and optionally if Tk is installed,
236 idle3 (symbolic link to idle&python3-majorver;),
237 idle&python3-majorver;
238 </seg>
239 <seg>
240 libpython&python3-majorver;m.so and libpython3.so
241 </seg>
242 <seg>
243 /usr/include/python&python3-majorver;m,
244 /usr/lib/python&python3-majorver;, and
245 /usr/share/doc/python-&python3-version;
246 </seg>
247 </seglistitem>
248 </segmentedlist>
249
250 <variablelist>
251 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
252 <?dbfo list-presentation="list"?>
253 <?dbhtml list-presentation="table"?>
254
255 <varlistentry id="idle3">
256 <term><command>idle3</command></term>
257 <listitem>
258 <para>
259 is a wrapper script that opens a
260 <application>Python</application> aware GUI editor.
261 </para>
262 <indexterm zone="python3 idle3">
263 <primary sortas="b-idle3">idle3</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="pydoc3">
269 <term><command>pydoc3</command></term>
270 <listitem>
271 <para>
272 is the <application>Python</application> documentation
273 tool.
274 </para>
275 <indexterm zone="python3 pydoc3">
276 <primary sortas="b-pydoc3">pydo3c</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="python3-prog">
282 <term><command>python3</command></term>
283 <listitem>
284 <para>
285 is an interpreted, interactive, object-oriented programming
286 language.
287 </para>
288 <indexterm zone="python3 python3-prog">
289 <primary sortas="b-python3">python3</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="python-ver">
295 <term><command>python&python3-majorver;</command></term>
296 <listitem>
297 <para>
298 is a version-specific name for the <command>python</command>
299 program.
300 </para>
301 <indexterm zone="python3 python-ver">
302 <primary
303 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 </variablelist>
309
310 </sect2>
311
312</sect1>
Note: See TracBrowser for help on using the repository browser.