source: general/prog/python3.xml@ adf6dd9a

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