1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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 "ftp://ftp.python.org/pub/python/&Python-version;/Python-&Python-version;.tar.bz2">
|
---|
9 | <!ENTITY python-md5sum "98db1465629693fc434d4dc52db93838">
|
---|
10 | <!ENTITY python-size "7.5 MB">
|
---|
11 | <!ENTITY python-buildsize "115 MB">
|
---|
12 | <!ENTITY python-time "0.9 SBU (additional 2.2 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 | <keywordset>
|
---|
22 | <keyword role="package">Python-&Python-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">Python</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>Python-&Python-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="python">
|
---|
30 | <primary sortas="a-Python">Python</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to Python</title>
|
---|
35 |
|
---|
36 | <para>The <application>Python</application> package contains the
|
---|
37 | <application>Python</application> development environment.
|
---|
38 | This is useful for object-oriented programming, writing scripts,
|
---|
39 | prototyping large programs or developing entire applications.</para>
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>Download (HTTP): <ulink url="&python-download-http;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download (FTP): <ulink url="&python-download-ftp;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download MD5 sum: &python-md5sum;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download size: &python-size;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated disk space required: &python-buildsize;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated build time: &python-time;</para>
|
---|
60 | </listitem>
|
---|
61 | </itemizedlist>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
64 | <itemizedlist spacing='compact'>
|
---|
65 | <listitem>
|
---|
66 | <para>Required patch: <ulink
|
---|
67 | url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>Required patch: <ulink
|
---|
71 | url="&patch-root;/Python-&Python-version;-db44-1.patch"/></para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Python Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional"><xref linkend="openssl"/>,
|
---|
79 | <xref linkend="tk"/>, and
|
---|
80 | <xref linkend="gdbm"/></para>
|
---|
81 | <!-- <xref linkend="db"/> -->
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="installation">
|
---|
86 | <title>Installation of Python</title>
|
---|
87 |
|
---|
88 | <para>Install <application>Python</application> by running the following
|
---|
89 | commands:</para>
|
---|
90 |
|
---|
91 | <screen><userinput>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
---|
92 | patch -Np1 -i ../Python-&Python-version;-db44-1.patch &&
|
---|
93 | ./configure --prefix=/usr --enable-shared &&
|
---|
94 | make</userinput></screen>
|
---|
95 |
|
---|
96 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
97 |
|
---|
98 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
99 |
|
---|
100 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
101 |
|
---|
102 | <note>
|
---|
103 | <para>There is no documentation installed using the instructions above.
|
---|
104 | However, There are LaTeX sources included with the distribution. See the
|
---|
105 | <filename>Doc/README</filename> file in the source distribution for
|
---|
106 | instructions to format the LaTeX sources. Alternatively, you can download
|
---|
107 | preformatted documentation from
|
---|
108 | <ulink url="http://www.python.org/doc/current/download.html"/>.</para>
|
---|
109 | </note>
|
---|
110 |
|
---|
111 | </sect2>
|
---|
112 |
|
---|
113 | <sect2 role="content">
|
---|
114 | <title>Contents</title>
|
---|
115 |
|
---|
116 | <segmentedlist>
|
---|
117 | <segtitle>Installed Programs</segtitle>
|
---|
118 | <segtitle>Installed Libraries</segtitle>
|
---|
119 | <segtitle>Installed Directories</segtitle>
|
---|
120 |
|
---|
121 | <seglistitem>
|
---|
122 | <seg>pydoc, python, python2.4, smtpd.py, and optionally if
|
---|
123 | <application>Tk</application> is installed, idle</seg>
|
---|
124 | <seg>libpython2.4.so and numerous modules installed in
|
---|
125 | /usr/lib/python2.4/lib-dynload</seg>
|
---|
126 | <seg>/usr/include/python2.4 and /usr/lib/python2.4</seg>
|
---|
127 | </seglistitem>
|
---|
128 | </segmentedlist>
|
---|
129 |
|
---|
130 | <variablelist>
|
---|
131 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
132 | <?dbfo list-presentation="list"?>
|
---|
133 | <?dbhtml list-presentation="table"?>
|
---|
134 |
|
---|
135 | <varlistentry id="idle">
|
---|
136 | <term><command>idle</command></term>
|
---|
137 | <listitem>
|
---|
138 | <para>is a wrapper script that opens a
|
---|
139 | <application>Python</application> aware GUI editor.</para>
|
---|
140 | <indexterm zone="python idle">
|
---|
141 | <primary sortas="b-idle">idle</primary>
|
---|
142 | </indexterm>
|
---|
143 | </listitem>
|
---|
144 | </varlistentry>
|
---|
145 |
|
---|
146 | <varlistentry id="pydoc">
|
---|
147 | <term><command>pydoc</command></term>
|
---|
148 | <listitem>
|
---|
149 | <para>is the <application>Python</application> documentation
|
---|
150 | tool.</para>
|
---|
151 | <indexterm zone="python pydoc">
|
---|
152 | <primary sortas="b-pydoc">pydoc</primary>
|
---|
153 | </indexterm>
|
---|
154 | </listitem>
|
---|
155 | </varlistentry>
|
---|
156 |
|
---|
157 | <varlistentry id="python-prog">
|
---|
158 | <term><command>python</command></term>
|
---|
159 | <listitem>
|
---|
160 | <para>is an interpreted, interactive, object-oriented programming
|
---|
161 | language.</para>
|
---|
162 | <indexterm zone="python python-prog">
|
---|
163 | <primary sortas="b-python">python</primary>
|
---|
164 | </indexterm>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | <varlistentry id="python2.4">
|
---|
169 | <term><command>python2.4</command></term>
|
---|
170 | <listitem>
|
---|
171 | <para>is a version-specific name for the <command>python</command>
|
---|
172 | program.</para>
|
---|
173 | <indexterm zone="python python2.4">
|
---|
174 | <primary sortas="b-python2.4">python2.4</primary>
|
---|
175 | </indexterm>
|
---|
176 | </listitem>
|
---|
177 | </varlistentry>
|
---|
178 |
|
---|
179 | <varlistentry id="smtpd.py">
|
---|
180 | <term><command>smtpd.py</command></term>
|
---|
181 | <listitem>
|
---|
182 | <para>is an SMTP proxy implemented in
|
---|
183 | <application>Python</application>.</para>
|
---|
184 | <indexterm zone="python smtpd.py">
|
---|
185 | <primary sortas="b-smtpd.py">smtpd.py</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | </variablelist>
|
---|
191 |
|
---|
192 | </sect2>
|
---|
193 |
|
---|
194 | </sect1>
|
---|