source: general/prog/python3.xml@ f82ac3f

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 f82ac3f 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
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[2cee003]7 <!ENTITY python3-download-http
[355495ce]8 "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz">
9 <!ENTITY python3-download-ftp " ">
[23d3543c]10 <!ENTITY python3-md5sum "c94b78ea3b68a9bbc9906af4d5b4fdc7">
[03d30cf]11 <!ENTITY python3-size "12 MB">
[23d3543c]12 <!ENTITY python3-buildsize "260 MB">
13 <!ENTITY python3-time "0.9 SBU">
[82fac2c]14
[2cee003]15 <!ENTITY python3htmldoc-download-http
[355495ce]16 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">
[23d3543c]17 <!ENTITY python3htmldoc-md5sum "b5eee2b290338fb08c1512bfc79bb999">
18 <!ENTITY python3htmldoc-size "4.7 MB">
[52d29f7]19]>
20
[b88be39]21<sect1 id="python3" xreflabel="Python-&python3-version;">
22 <?dbhtml filename="python3.html" ?>
[83f69e5d]23
24 <sect1info>
25 <othername>$LastChangedBy$</othername>
26 <date>$Date$</date>
27 </sect1info>
28
[b88be39]29 <title>Python-&python3-version;</title>
[83f69e5d]30
[b88be39]31 <indexterm zone="python3">
[03d30cf]32 <primary sortas="a-Python3">Python3</primary>
[83f69e5d]33 </indexterm>
34
35 <sect2 role="package">
[03d30cf]36 <title>Introduction to Python 3</title>
[83f69e5d]37
[355495ce]38 <para>
[03d30cf]39 The <application>Python 3</application> package contains the
[355495ce]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>
[48b816cb]44
[3ed51307]45 &lfs74_checked;
[48b816cb]46
[83f69e5d]47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
[355495ce]50 <para>
51 Download (HTTP): <ulink url="&python3-download-http;"/>
52 </para>
[83f69e5d]53 </listitem>
54 <listitem>
[355495ce]55 <para>
56 Download (FTP): <ulink url="&python3-download-ftp;"/>
57 </para>
[83f69e5d]58 </listitem>
59 <listitem>
[355495ce]60 <para>
61 Download MD5 sum: &python3-md5sum;
62 </para>
[83f69e5d]63 </listitem>
64 <listitem>
[355495ce]65 <para>
66 Download size: &python3-size;
67 </para>
[83f69e5d]68 </listitem>
69 <listitem>
[355495ce]70 <para>
71 Estimated disk space required: &python3-buildsize;
72 </para>
[83f69e5d]73 </listitem>
74 <listitem>
[355495ce]75 <para>
76 Estimated build time: &python3-time;
77 </para>
[83f69e5d]78 </listitem>
79 </itemizedlist>
80
81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[355495ce]82 <itemizedlist spacing="compact">
[3a94882]83 <title>Optional HTML Documentation</title>
[1970f00]84 <listitem>
[355495ce]85 <para>
86 Download (HTTP): <ulink url="&python3htmldoc-download-http;"/>
87 </para>
[3a94882]88 </listitem>
89 <listitem>
[355495ce]90 <para>
91 Download MD5 sum: &python3htmldoc-md5sum;
92 </para>
[3a94882]93 </listitem>
94 <listitem>
[355495ce]95 <para>
96 Download size: &python3htmldoc-size;
97 </para>
[1970f00]98 </listitem>
99 </itemizedlist>
100
[03d30cf]101 <bridgehead renderas="sect3">Python 3 Dependencies</bridgehead>
[83f69e5d]102
[355495ce]103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
[adf6dd9a]105 <xref linkend="expat"/> and
106 <xref linkend="libffi"/>
[355495ce]107 </para>
108
[83f69e5d]109 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]110 <para role="optional">
111 <xref linkend="bluez"/>
112 </para>
113
114 <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead>
115 <para role="optional">
[82fac2c]116 <xref linkend="db"/>,
[355495ce]117 <xref linkend="openssl"/>,
118 <xref linkend="sqlite"/> and
119 <xref linkend="tk"/>
120 </para>
[ce33273]121
[1039de3]122 <para condition="html" role="usernotes">User Notes:
[355495ce]123 <ulink url="&blfs-wiki;/Python3"/>
124 </para>
[83f69e5d]125 </sect2>
126
127 <sect2 role="installation">
[03d30cf]128 <title>Installation of Python 3</title>
[83f69e5d]129
[355495ce]130 <para>
[03d30cf]131 Install <application>Python 3</application> by running the following
[355495ce]132 commands:
133 </para>
[83f69e5d]134
[23d3543c]135<screen><userinput>./configure --prefix=/usr \
[c525bd1]136 --enable-shared \
[355495ce]137 --with-system-expat \
138 --with-system-ffi &amp;&amp;
[83f69e5d]139make</userinput></screen>
140
[355495ce]141 <para>
[03d30cf]142 To test the results, issue: <command>make test</command>.
[355495ce]143 </para>
144
145 <para>
146 Now, as the <systemitem class="username">root</systemitem> user:
147 </para>
148
[82fac2c]149<screen role="root"><userinput>make install &amp;&amp;
[c525bd1]150chmod -v 755 /usr/lib/libpython&python3-majorver;m.so &amp;&amp;
[355495ce]151chmod -v 755 /usr/lib/libpython3.so</userinput></screen>
152
153 <para>
[03d30cf]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:
[355495ce]157 </para>
[1970f00]158
[23d3543c]159<screen role="root"><userinput>install -v -dm755 /usr/share/doc/python-&python3-version;/html &amp;&amp;
[1970f00]160tar --strip-components=1 \
[cff8f9e]161 --no-same-owner \
162 --no-same-permissions \
[03d30cf]163 -C /usr/share/doc/python-&python3-version;/html \
[716ca8aa]164 -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
[1970f00]165
[879d269]166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
[355495ce]171 <para>
[82fac2c]172 <option>--with-system-expat</option>: This switch enables linking against
[355495ce]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
[82fac2c]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
[355495ce]190 <para>
[0d7900a]191 <command>chmod ...</command>: Fix permissions for shared libraries to be
[355495ce]192 consistent with other libraries.
193 </para>
[7224506]194
[879d269]195 </sect2>
196
197 <sect2 role="configuration">
[03d30cf]198 <title>Configuring Python 3</title>
[879d269]199
[355495ce]200 <para>
[03d30cf]201 In order for <command>python3</command> to find the installed
[355495ce]202 documentation, you must add the following environment variable to
203 individual user's or the system's profile:
204 </para>
[1970f00]205
[03d30cf]206<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen>
[83f69e5d]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>
[355495ce]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
[0d7900a]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,
[355495ce]229
230 python3-config (symbolic link to python&python3-majorver;-config),
231 python&python3-majorver;-config (symbolic link to python3-config),
[c525bd1]232 python&python3-majorver;m-config,
[355495ce]233
234 and optionally if Tk is installed,
235 idle3 (symbolic link to idle&python3-majorver;),
236 idle&python3-majorver;
237 </seg>
238 <seg>
[03d30cf]239 libpython&python3-majorver;m.so and libpython3.so
[355495ce]240 </seg>
241 <seg>
[c525bd1]242 /usr/include/python&python3-majorver;m,
[355495ce]243 /usr/lib/python&python3-majorver;, and
244 /usr/share/doc/python-&python3-version;
245 </seg>
[83f69e5d]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
[355495ce]254 <varlistentry id="idle3">
255 <term><command>idle3</command></term>
[83f69e5d]256 <listitem>
[355495ce]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>
[83f69e5d]263 </indexterm>
264 </listitem>
265 </varlistentry>
266
[355495ce]267 <varlistentry id="pydoc3">
268 <term><command>pydoc3</command></term>
[83f69e5d]269 <listitem>
[355495ce]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>
[83f69e5d]276 </indexterm>
277 </listitem>
278 </varlistentry>
279
[b88be39]280 <varlistentry id="python3-prog">
[2cee003]281 <term><command>python3</command></term>
[83f69e5d]282 <listitem>
[355495ce]283 <para>
284 is an interpreted, interactive, object-oriented programming
285 language.
286 </para>
[b88be39]287 <indexterm zone="python3 python3-prog">
288 <primary sortas="b-python3">python3</primary>
[83f69e5d]289 </indexterm>
290 </listitem>
291 </varlistentry>
292
[f67f5387]293 <varlistentry id="python-ver">
[b88be39]294 <term><command>python&python3-majorver;</command></term>
[83f69e5d]295 <listitem>
[355495ce]296 <para>
297 is a version-specific name for the <command>python</command>
298 program.
299 </para>
[b88be39]300 <indexterm zone="python3 python-ver">
[2cee003]301 <primary
302 sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
[83f69e5d]303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 </variablelist>
308
309 </sect2>
[f45b1953]310
311</sect1>
Note: See TracBrowser for help on using the repository browser.