[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[6822b09] | 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">
|
---|
[9824250] | 9 | <!ENTITY python-md5sum "44c2226eff0f3fc1f2fedaa1ce596533">
|
---|
| 10 | <!ENTITY python-size "7.8 MB">
|
---|
[775c349a] | 11 | <!ENTITY python-buildsize "133 MB">
|
---|
| 12 | <!ENTITY python-time "1.01 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[3fe8b511] | 15 | <sect1 id="python" xreflabel="Python-&Python-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[19aa75a] | 20 | <?dbhtml filename="Python.html" ?>
|
---|
[3fe8b511] | 21 | <title>Python-&Python-version;</title>
|
---|
[9824250] | 22 | <indexterm zone="python">
|
---|
| 23 | <primary sortas="a-Python">Python</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[52d29f7] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Python</application></title>
|
---|
[e9ef7b5e] | 27 |
|
---|
[52d29f7] | 28 | <para>The <application>Python</application> package contains the
|
---|
| 29 | <application>Python</application> development environment.
|
---|
| 30 | This is useful for object-oriented programming, writing scripts,
|
---|
| 31 | prototyping large programs or developing entire applications.</para>
|
---|
[e9ef7b5e] | 32 |
|
---|
[52d29f7] | 33 | <sect3><title>Package information</title>
|
---|
| 34 | <itemizedlist spacing='compact'>
|
---|
[9824250] | 35 | <listitem><para>Download (HTTP):
|
---|
| 36 | <ulink url="&python-download-http;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download (FTP):
|
---|
| 38 | <ulink url="&python-download-ftp;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download MD5 sum: &python-md5sum;</para></listitem>
|
---|
[775c349a] | 40 | <listitem><para>Download size: &python-size;</para></listitem>
|
---|
[9824250] | 41 | <listitem><para>Estimated disk space required:
|
---|
| 42 | &python-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time:
|
---|
| 44 | &python-time;</para></listitem></itemizedlist>
|
---|
[52d29f7] | 45 | </sect3>
|
---|
[e9ef7b5e] | 46 |
|
---|
[52d29f7] | 47 | <sect3><title>Additional downloads</title>
|
---|
| 48 | <itemizedlist spacing='compact'>
|
---|
[e204421d] | 49 | <listitem><para>Required patch: <ulink
|
---|
[3fe8b511] | 50 | url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para></listitem>
|
---|
[e204421d] | 51 | <listitem><para>Required patch for Berkeley DB: <ulink
|
---|
[93c1bf51] | 52 | url="&patch-root;/Python-&Python-version;-db43-1.patch"/></para></listitem>
|
---|
[e204421d] | 53 | <listitem><para>Required patch (see
|
---|
| 54 | <ulink url="http://www.python.org/security/PSF-2005-001/"/>): <ulink
|
---|
| 55 | url="http://www.python.org/security/PSF-2005-001/patch.txt"/></para></listitem>
|
---|
[52d29f7] | 56 | </itemizedlist>
|
---|
| 57 | </sect3>
|
---|
[e9ef7b5e] | 58 |
|
---|
[52d29f7] | 59 | <sect3><title><application>Python</application> dependencies</title>
|
---|
| 60 | <sect4><title>Optional</title>
|
---|
[cef3a2f] | 61 | <para><xref linkend="openssl"/>,
|
---|
[775c349a] | 62 | <xref linkend="tk"/>,
|
---|
| 63 | <xref linkend="gdbm"/> and
|
---|
| 64 | <xref linkend="db"/></para>
|
---|
[54f3179] | 65 | </sect4>
|
---|
[52d29f7] | 66 | </sect3>
|
---|
| 67 |
|
---|
[e9ef7b5e] | 68 | </sect2>
|
---|
[52d29f7] | 69 |
|
---|
| 70 | <sect2>
|
---|
| 71 | <title>Installation of <application>Python</application></title>
|
---|
[e9ef7b5e] | 72 |
|
---|
[9824250] | 73 | <para>If you have Berkeley <application>DB</application> installed and wish to
|
---|
| 74 | utilize it, apply the following patch:</para>
|
---|
[93c1bf51] | 75 |
|
---|
[cb83205] | 76 | <screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-db43-1.patch</command></userinput></screen>
|
---|
[93c1bf51] | 77 |
|
---|
[e9ef7b5e] | 78 | <para>Install <application>Python</application> by running the following
|
---|
[99b29a4] | 79 | commands:</para>
|
---|
[e9ef7b5e] | 80 |
|
---|
[e204421d] | 81 | <screen><userinput><command>patch -Np0 -i ../patch.txt &&
|
---|
| 82 | patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
---|
[52d29f7] | 83 | ./configure --prefix=/usr --enable-shared &&
|
---|
[9824250] | 84 | make</command></userinput></screen>
|
---|
[e9ef7b5e] | 85 |
|
---|
[9824250] | 86 | <para>Now, as the root user:</para>
|
---|
[52d29f7] | 87 |
|
---|
[9824250] | 88 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[e9ef7b5e] | 89 |
|
---|
[52d29f7] | 90 | </sect2>
|
---|
[e9ef7b5e] | 91 |
|
---|
[9824250] | 92 | <sect2>
|
---|
| 93 | <title>Contents</title>
|
---|
[775c349a] | 94 |
|
---|
[9824250] | 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed Programs</segtitle>
|
---|
| 97 | <segtitle>Installed Libraries</segtitle>
|
---|
| 98 | <segtitle>Installed Directories</segtitle>
|
---|
| 99 |
|
---|
| 100 | <seglistitem>
|
---|
| 101 | <seg>pydoc, python, smtpd.py and optionally if <application>Tk</application>
|
---|
| 102 | is installed, idle</seg>
|
---|
| 103 | <seg>libpython&Python-version;.so and numerous modules installed in
|
---|
| 104 | /usr/lib/python&Python-version;/lib-dynload</seg>
|
---|
| 105 | <seg>/usr/include/python&Python-version;
|
---|
| 106 | and /usr/lib/python&Python-version;</seg>
|
---|
| 107 | </seglistitem>
|
---|
| 108 | </segmentedlist>
|
---|
| 109 |
|
---|
| 110 | <variablelist>
|
---|
| 111 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 112 | <?dbfo list-presentation="list"?>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="idle">
|
---|
| 115 | <term><command>idle</command></term>
|
---|
| 116 | <listitem><para>is a wrapper script that opens a
|
---|
| 117 | <application>Python</application> aware <acronym>GUI</acronym> editor.</para>
|
---|
| 118 | <indexterm zone="python idle">
|
---|
| 119 | <primary sortas="b-idle">idle</primary>
|
---|
| 120 | </indexterm></listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="pydoc">
|
---|
| 124 | <term><command>pydoc</command></term>
|
---|
| 125 | <listitem><para>is the <application>Python</application> documentation
|
---|
| 126 | tool.</para>
|
---|
| 127 | <indexterm zone="python pydoc">
|
---|
| 128 | <primary sortas="b-pydoc">pydoc</primary>
|
---|
| 129 | </indexterm></listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="python-prog">
|
---|
| 133 | <term><command>python</command></term>
|
---|
| 134 | <listitem><para>is an interpreted, interactive, object-oriented programming
|
---|
| 135 | language.</para>
|
---|
| 136 | <indexterm zone="python python-prog">
|
---|
| 137 | <primary sortas="b-python">python</primary>
|
---|
| 138 | </indexterm></listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="smtpd.py">
|
---|
| 142 | <term><command>smtpd.py</command></term>
|
---|
| 143 | <listitem><para>is an <acronym>SMTP</acronym> proxy implemented in
|
---|
| 144 | <application>Python</application>.</para>
|
---|
| 145 | <indexterm zone="python smtpd.py">
|
---|
| 146 | <primary sortas="b-smtpd.py">smtpd.py</primary>
|
---|
| 147 | </indexterm></listitem>
|
---|
| 148 | </varlistentry>
|
---|
| 149 | </variablelist>
|
---|
[e9ef7b5e] | 150 |
|
---|
[52d29f7] | 151 | </sect2>
|
---|
[f45b1953] | 152 |
|
---|
| 153 | </sect1>
|
---|