source: general/prog/python.xml@ f67f5387

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 f67f5387 was f67f5387, checked in by Randy McMurchy <randy@…>, 17 years ago

Replaced all instances of the Python library directory pathname with an entity

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

  • Property mode set to 100644
File size: 6.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 "70084ffa561660f07de466c2c8c4842d">
10 <!ENTITY python-size "9.3 MB">
11 <!ENTITY python-buildsize "152 MB">
12 <!ENTITY python-time "1.0 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 <itemizedlist spacing='compact'>
61 <listitem>
62 <para>Required patch: <ulink
63 url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect3">Python Dependencies</bridgehead>
68
69 <bridgehead renderas="sect4">Optional</bridgehead>
70 <para role="optional"><xref linkend="openssl"/>,
71 <xref linkend="tk"/>, and
72 <xref linkend="gdbm"/></para>
73 <!-- <xref linkend="db"/> -->
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/Python"/></para>
77
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of Python</title>
82
83 <para>Install <application>Python</application> by running the following
84 commands:</para>
85
86<screen><userinput>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &amp;&amp;
87./configure --prefix=/usr --enable-shared &amp;&amp;
88make</userinput></screen>
89
90 <para>To test the results, issue: <command>make test</command>.</para>
91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
94<screen role="root"><userinput>make install</userinput></screen>
95
96 <note>
97 <para>There is no documentation installed using the instructions above.
98 However, There are LaTeX sources included with the distribution. See the
99 <filename>Doc/README</filename> file in the source distribution for
100 instructions to format the LaTeX sources. Alternatively, you can download
101 preformatted documentation from
102 <ulink url="http://www.python.org/doc/current/download.html"/>.</para>
103 </note>
104
105 </sect2>
106
107 <sect2 role="content">
108 <title>Contents</title>
109
110 <segmentedlist>
111 <segtitle>Installed Programs</segtitle>
112 <segtitle>Installed Libraries</segtitle>
113 <segtitle>Installed Directories</segtitle>
114
115 <seglistitem>
116 <seg>pydoc, python, python&python-libdir;, smtpd.py, and optionally if
117 <application>Tk</application> is installed, idle</seg>
118 <seg>libpython&python-libdir;.so and numerous modules installed in
119 /usr/lib/python&python-libdir;/lib-dynload</seg>
120 <seg>/usr/include/python&python-libdir;,
121 and /usr/lib/python&python-libdir;</seg>
122 </seglistitem>
123 </segmentedlist>
124
125 <variablelist>
126 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
127 <?dbfo list-presentation="list"?>
128 <?dbhtml list-presentation="table"?>
129
130 <varlistentry id="idle">
131 <term><command>idle</command></term>
132 <listitem>
133 <para>is a wrapper script that opens a
134 <application>Python</application> aware GUI editor.</para>
135 <indexterm zone="python idle">
136 <primary sortas="b-idle">idle</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="pydoc">
142 <term><command>pydoc</command></term>
143 <listitem>
144 <para>is the <application>Python</application> documentation
145 tool.</para>
146 <indexterm zone="python pydoc">
147 <primary sortas="b-pydoc">pydoc</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="python-prog">
153 <term><command>python</command></term>
154 <listitem>
155 <para>is an interpreted, interactive, object-oriented programming
156 language.</para>
157 <indexterm zone="python python-prog">
158 <primary sortas="b-python">python</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="python-ver">
164 <term><command>python&python-libdir;</command></term>
165 <listitem>
166 <para>is a version-specific name for the <command>python</command>
167 program.</para>
168 <indexterm zone="python python-ver">
169 <primary sortas="b-python&python-libdir;">python&python-libdir;</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="smtpd.py">
175 <term><command>smtpd.py</command></term>
176 <listitem>
177 <para>is an SMTP proxy implemented in
178 <application>Python</application>.</para>
179 <indexterm zone="python smtpd.py">
180 <primary sortas="b-smtpd.py">smtpd.py</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 </variablelist>
186
187 </sect2>
188
189</sect1>
Note: See TracBrowser for help on using the repository browser.