[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">
|
---|
[dafa0dc] | 9 | <!ENTITY python-md5sum "98db1465629693fc434d4dc52db93838">
|
---|
| 10 | <!ENTITY python-size "7.5 MB">
|
---|
[83f69e5d] | 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;">
|
---|
[256ee72c] | 16 | <?dbhtml filename="python.html" ?>
|
---|
[83f69e5d] | 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[256ee72c] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">Python-&Python-version;.tar</keyword>
|
---|
[22ac237] | 23 | <keyword role="ftpdir">Python</keyword>
|
---|
[256ee72c] | 24 | </keywordset>
|
---|
[83f69e5d] | 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>
|
---|
[7cd76d62] | 66 | <para>Required patch: <ulink
|
---|
[83f69e5d] | 67 | url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Python Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[256ee72c] | 74 | <para role="optional"><xref linkend="openssl"/>,
|
---|
[7cd76d62] | 75 | <xref linkend="tk"/>,
|
---|
[83f69e5d] | 76 | <xref linkend="gdbm"/> and
|
---|
| 77 | <xref linkend="db"/></para>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of Python</title>
|
---|
| 83 |
|
---|
| 84 | <para>Install <application>Python</application> by running the following
|
---|
| 85 | commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
---|
[52d29f7] | 88 | ./configure --prefix=/usr --enable-shared &&
|
---|
[83f69e5d] | 89 | make</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | <para>To test the results, issue: <command>make test</command>.</para>
|
---|
| 92 |
|
---|
| 93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 94 |
|
---|
| 95 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | <note>
|
---|
[7cd76d62] | 98 | <para>There is no documentation installed using the instructions above.
|
---|
[40d6bab] | 99 | However, There are LaTeX sources included with the distribution. See the
|
---|
[7cd76d62] | 100 | <filename>Doc/README</filename> file in the source distribution for
|
---|
[40d6bab] | 101 | instructions to format the LaTeX sources. Alternatively, you can download
|
---|
[7cd76d62] | 102 | preformatted documentation from
|
---|
[83f69e5d] | 103 | <ulink url="http://www.python.org/doc/current/download.html"/>.</para>
|
---|
| 104 | </note>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="content">
|
---|
| 109 | <title>Contents</title>
|
---|
| 110 |
|
---|
| 111 | <segmentedlist>
|
---|
| 112 | <segtitle>Installed Programs</segtitle>
|
---|
| 113 | <segtitle>Installed Libraries</segtitle>
|
---|
| 114 | <segtitle>Installed Directories</segtitle>
|
---|
| 115 |
|
---|
| 116 | <seglistitem>
|
---|
[7cd76d62] | 117 | <seg>pydoc, python, python2.4, smtpd.py, and optionally if
|
---|
[83f69e5d] | 118 | <application>Tk</application> is installed, idle</seg>
|
---|
[7cd76d62] | 119 | <seg>libpython2.4.so and numerous modules installed in
|
---|
[83f69e5d] | 120 | /usr/lib/python2.4/lib-dynload</seg>
|
---|
| 121 | <seg>/usr/include/python2.4 and /usr/lib/python2.4</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>
|
---|
[7cd76d62] | 133 | <para>is a wrapper script that opens a
|
---|
[83f69e5d] | 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>
|
---|
[7cd76d62] | 144 | <para>is the <application>Python</application> documentation
|
---|
[83f69e5d] | 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>
|
---|
[7cd76d62] | 155 | <para>is an interpreted, interactive, object-oriented programming
|
---|
[83f69e5d] | 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="python2.4">
|
---|
| 164 | <term><command>python2.4</command></term>
|
---|
| 165 | <listitem>
|
---|
[0619e6d] | 166 | <para>is a version-specific name for the <command>python</command>
|
---|
[83f69e5d] | 167 | program.</para>
|
---|
| 168 | <indexterm zone="python python2.4">
|
---|
| 169 | <primary sortas="b-python2.4">python2.4</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="smtpd.py">
|
---|
| 175 | <term><command>smtpd.py</command></term>
|
---|
| 176 | <listitem>
|
---|
[7cd76d62] | 177 | <para>is an SMTP proxy implemented in
|
---|
[83f69e5d] | 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>
|
---|
[f45b1953] | 188 |
|
---|
| 189 | </sect1>
|
---|