source: general/prog/python.xml@ d7e4082

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 d7e4082 was d7e4082, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Fix typo in python docs file name

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

  • Property mode set to 100644
File size: 8.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 python-download-http "http://www.python.org/ftp/python/&Python-version;/Python-&Python-version;.tar.bz2">
8 <!ENTITY python-download-ftp "&gentoo-ftp-repo;/Python-&Python-version;.tar.bz2">
9 <!ENTITY python-md5sum "e81c2f0953aa60f8062c05a4673f2be0">
10 <!ENTITY python-size "10.5 MB">
11 <!ENTITY python-buildsize "186 MB (additional 13M to run the test suite)">
12 <!ENTITY python-time "1.2 SBU (additional 2.6 SBU to run the test suite)">
13]>
14
15<sect1 id="python" xreflabel="Python-&Python-version;">
16 <?dbhtml filename="python.html" ?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Python-&Python-version;</title>
24
25 <indexterm zone="python">
26 <primary sortas="a-Python">Python</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Python</title>
31
32 <para>The <application>Python</application> package contains the
33 <application>Python</application> development environment.
34 This is useful for object-oriented programming, writing scripts,
35 prototyping large programs or developing entire applications.</para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&python-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&python-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &python-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &python-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &python-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &python-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
60
61 <bridgehead renderas="sect4">Required Patch</bridgehead>
62 <itemizedlist spacing='compact'>
63 <listitem>
64 <para><ulink
65 url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">Optional Patch</bridgehead>
70 <itemizedlist spacing='compact'>
71 <listitem>
72 <para><ulink
73 url="&patch-root;/Python-&Python-version;-testing-1.patch"/></para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect4">Optional HTML Documentation</bridgehead>
78 <itemizedlist spacing='compact'>
79 <listitem>
80 <para><ulink
81 url="http://docs.python.org/ftp/python/doc/&python-majorver;/python-&python-majorver;-docs-html.tar.bz2"/></para>
82 </listitem>
83 </itemizedlist>
84
85 <bridgehead renderas="sect3">Python Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional"><xref linkend="pth"/></para>
89
90 <bridgehead renderas="sect4">Optional
91 (to create package-specific support modules)</bridgehead>
92 <para role="optional"><xref linkend="openssl"/>,
93 <xref linkend="tk"/>,
94 <xref linkend="gdbm"/>, and
95 <ulink url="http://sqlite.org/">SQLite 3</ulink></para>
96 <!-- <xref linkend="db"/> -->
97
98 <para condition="html" role="usernotes">User Notes:
99 <ulink url="&blfs-wiki;/Python"/></para>
100
101 </sect2>
102
103 <sect2 role="installation">
104 <title>Installation of Python</title>
105
106 <para>Install <application>Python</application> by running the following
107 commands:</para>
108
109<screen><userinput>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &amp;&amp;
110patch -Np1 -i ../Python-&Python-version;-testing-1.patch &amp;&amp;
111./configure --prefix=/usr --enable-shared &amp;&amp;
112make</userinput></screen>
113
114 <para>To test the results, issue: <command>make test</command>. Note that
115 if you have an existing <application>Python</application> installation
116 which includes the <application>PyXML</application> module, the tests could
117 produce a segmentation fault.</para>
118
119 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
120
121<screen role="root"><userinput>make install</userinput></screen>
122
123 <para>There is no documentation installed using the instructions above.
124 See the <filename>Doc/README.txt</filename> file in the source
125 distribution for instructions on how to create the html. Alternatively,
126 you can download preformatted documentation from <ulink
127 url="http://docs.python.org/download.html"/>.</para>
128
129 <para>In order to use the <command>help ('name_string')</command> feature
130 of the <command>python</command> interpreter with some statements and
131 keywords, you must download (or create) the optional HTML documentation
132 and install it. If you downloaded the HTML docs, issue the following
133 commands as the
134 <systemitem class="username">root</systemitem> user:</para>
135
136<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&Python-version;/html &amp;&amp;
137tar --strip-components=1 \
138 --no-same-owner \
139 --no-same-permissions \
140 -C /usr/share/doc/Python-&Python-version;/html \
141 -xvf ../python-&python-majorver;-docs-html.tar.bz2</userinput></screen>
142
143 <para>In order for <command>python</command> to find the installed
144 documentation, you must add the following environment variable to
145 individual user's or the system's profile:</para>
146
147 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&Python-version;/html</userinput></screen>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <segmentedlist>
155 <segtitle>Installed Programs</segtitle>
156 <segtitle>Installed Libraries</segtitle>
157 <segtitle>Installed Directories</segtitle>
158
159 <seglistitem>
160 <seg>pydoc, python, python&python-majorver;, smtpd.py, and optionally if
161 <application>Tk</application> is installed, idle</seg>
162 <seg>libpython&python-majorver;.so and numerous modules installed in
163 /usr/lib/python&python-majorver;/lib-dynload</seg>
164 <seg>/usr/include/python&python-majorver;,
165 /usr/lib/python&python-majorver;, and
166 /usr/share/doc/python-&Python-version;</seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="idle">
176 <term><command>idle</command></term>
177 <listitem>
178 <para>is a wrapper script that opens a
179 <application>Python</application> aware GUI editor.</para>
180 <indexterm zone="python idle">
181 <primary sortas="b-idle">idle</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="pydoc">
187 <term><command>pydoc</command></term>
188 <listitem>
189 <para>is the <application>Python</application> documentation
190 tool.</para>
191 <indexterm zone="python pydoc">
192 <primary sortas="b-pydoc">pydoc</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="python-prog">
198 <term><command>python</command></term>
199 <listitem>
200 <para>is an interpreted, interactive, object-oriented programming
201 language.</para>
202 <indexterm zone="python python-prog">
203 <primary sortas="b-python">python</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="python-ver">
209 <term><command>python&python-majorver;</command></term>
210 <listitem>
211 <para>is a version-specific name for the <command>python</command>
212 program.</para>
213 <indexterm zone="python python-ver">
214 <primary sortas="b-python&python-majorver;">python&python-majorver;</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="smtpd.py">
220 <term><command>smtpd.py</command></term>
221 <listitem>
222 <para>is an SMTP proxy implemented in
223 <application>Python</application>.</para>
224 <indexterm zone="python smtpd.py">
225 <primary sortas="b-smtpd.py">smtpd.py</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 </variablelist>
231
232 </sect2>
233
234</sect1>
Note: See TracBrowser for help on using the repository browser.