[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[83f69e5d] | 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 "de3e9a8836fab6df7c7ce545331afeb3">
|
---|
| 10 | <!ENTITY python-size "7.8 MB">
|
---|
| 11 | <!ENTITY python-buildsize "115 MB">
|
---|
| 12 | <!ENTITY python-time "0.91 SBU (additional 2.20 SBU to run the testsuite)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[3fe8b511] | 15 | <sect1 id="python" xreflabel="Python-&Python-version;">
|
---|
[83f69e5d] | 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><xref linkend="openssl"/>,
|
---|
| 71 | <xref linkend="tk"/>,
|
---|
| 72 | <xref linkend="gdbm"/> and
|
---|
| 73 | <xref linkend="db"/></para>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of Python</title>
|
---|
| 79 |
|
---|
| 80 | <para>Install <application>Python</application> by running the following
|
---|
| 81 | commands:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
---|
[52d29f7] | 84 | ./configure --prefix=/usr --enable-shared &&
|
---|
[83f69e5d] | 85 | make</userinput></screen>
|
---|
| 86 |
|
---|
| 87 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 88 |
|
---|
| 89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 90 |
|
---|
| 91 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | <note>
|
---|
| 94 | <para>There is no documentation installed using the instructions above.
|
---|
| 95 | However, There are Latex sources included with the distribution. See the
|
---|
| 96 | <filename>Doc/README</filename> file in the source distribution for
|
---|
| 97 | instructions to format the LaTex sources. Alternatively, you can download
|
---|
| 98 | preformatted documentation from
|
---|
| 99 | <ulink url="http://www.python.org/doc/current/download.html"/>.</para>
|
---|
| 100 | </note>
|
---|
| 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="content">
|
---|
| 105 | <title>Contents</title>
|
---|
| 106 |
|
---|
| 107 | <segmentedlist>
|
---|
| 108 | <segtitle>Installed Programs</segtitle>
|
---|
| 109 | <segtitle>Installed Libraries</segtitle>
|
---|
| 110 | <segtitle>Installed Directories</segtitle>
|
---|
| 111 |
|
---|
| 112 | <seglistitem>
|
---|
| 113 | <seg>pydoc, python, python2.4, smtpd.py, and optionally if
|
---|
| 114 | <application>Tk</application> is installed, idle</seg>
|
---|
| 115 | <seg>libpython2.4.so and numerous modules installed in
|
---|
| 116 | /usr/lib/python2.4/lib-dynload</seg>
|
---|
| 117 | <seg>/usr/include/python2.4 and /usr/lib/python2.4</seg>
|
---|
| 118 | </seglistitem>
|
---|
| 119 | </segmentedlist>
|
---|
| 120 |
|
---|
| 121 | <variablelist>
|
---|
| 122 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 123 | <?dbfo list-presentation="list"?>
|
---|
| 124 | <?dbhtml list-presentation="table"?>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="idle">
|
---|
| 127 | <term><command>idle</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>is a wrapper script that opens a
|
---|
| 130 | <application>Python</application> aware GUI editor.</para>
|
---|
| 131 | <indexterm zone="python idle">
|
---|
| 132 | <primary sortas="b-idle">idle</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="pydoc">
|
---|
| 138 | <term><command>pydoc</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>is the <application>Python</application> documentation
|
---|
| 141 | tool.</para>
|
---|
| 142 | <indexterm zone="python pydoc">
|
---|
| 143 | <primary sortas="b-pydoc">pydoc</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="python-prog">
|
---|
| 149 | <term><command>python</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>is an interpreted, interactive, object-oriented programming
|
---|
| 152 | language.</para>
|
---|
| 153 | <indexterm zone="python python-prog">
|
---|
| 154 | <primary sortas="b-python">python</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="python2.4">
|
---|
| 160 | <term><command>python2.4</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>is a version-specific name for the <command>python</command>
|
---|
| 163 | program.</para>
|
---|
| 164 | <indexterm zone="python python2.4">
|
---|
| 165 | <primary sortas="b-python2.4">python2.4</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="smtpd.py">
|
---|
| 171 | <term><command>smtpd.py</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>is an SMTP proxy implemented in
|
---|
| 174 | <application>Python</application>.</para>
|
---|
| 175 | <indexterm zone="python smtpd.py">
|
---|
| 176 | <primary sortas="b-smtpd.py">smtpd.py</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | </variablelist>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
[f45b1953] | 184 |
|
---|
| 185 | </sect1>
|
---|