[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">
|
---|
[2a038b2] | 8 | <!ENTITY python-download-ftp "ftp://ftp.python.org/pub/python/&Python-version;/Python-&Python-version;.tar.bz2">
|
---|
[db01861] | 9 | <!ENTITY python-md5sum "141c683447d5e76be1d2bd4829574f02">
|
---|
| 10 | <!ENTITY python-size "7.6 MB">
|
---|
| 11 | <!ENTITY python-buildsize "116 MB">
|
---|
[2a038b2] | 12 | <!ENTITY python-time "0.9 SBU (additional 2.2 SBU to run the test suite)">
|
---|
[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>
|
---|
| 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>
|
---|
[7cd76d62] | 62 | <para>Required patch: <ulink
|
---|
[83f69e5d] | 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>
|
---|
[256ee72c] | 70 | <para role="optional"><xref linkend="openssl"/>,
|
---|
[2a038b2] | 71 | <xref linkend="tk"/>, and
|
---|
| 72 | <xref linkend="gdbm"/></para>
|
---|
| 73 | <!-- <xref linkend="db"/> -->
|
---|
[83f69e5d] | 74 |
|
---|
[1039de3] | 75 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 76 | <ulink url="&blfs-wiki;/Python"/></para>
|
---|
[1039de3] | 77 |
|
---|
[83f69e5d] | 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 &&
|
---|
[52d29f7] | 87 | ./configure --prefix=/usr --enable-shared &&
|
---|
[83f69e5d] | 88 | make</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>
|
---|
[7cd76d62] | 97 | <para>There is no documentation installed using the instructions above.
|
---|
[40d6bab] | 98 | However, There are LaTeX sources included with the distribution. See the
|
---|
[7cd76d62] | 99 | <filename>Doc/README</filename> file in the source distribution for
|
---|
[40d6bab] | 100 | instructions to format the LaTeX sources. Alternatively, you can download
|
---|
[7cd76d62] | 101 | preformatted documentation from
|
---|
[83f69e5d] | 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>
|
---|
[7cd76d62] | 116 | <seg>pydoc, python, python2.4, smtpd.py, and optionally if
|
---|
[83f69e5d] | 117 | <application>Tk</application> is installed, idle</seg>
|
---|
[7cd76d62] | 118 | <seg>libpython2.4.so and numerous modules installed in
|
---|
[83f69e5d] | 119 | /usr/lib/python2.4/lib-dynload</seg>
|
---|
| 120 | <seg>/usr/include/python2.4 and /usr/lib/python2.4</seg>
|
---|
| 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
| 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="idle">
|
---|
| 130 | <term><command>idle</command></term>
|
---|
| 131 | <listitem>
|
---|
[7cd76d62] | 132 | <para>is a wrapper script that opens a
|
---|
[83f69e5d] | 133 | <application>Python</application> aware GUI editor.</para>
|
---|
| 134 | <indexterm zone="python idle">
|
---|
| 135 | <primary sortas="b-idle">idle</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="pydoc">
|
---|
| 141 | <term><command>pydoc</command></term>
|
---|
| 142 | <listitem>
|
---|
[7cd76d62] | 143 | <para>is the <application>Python</application> documentation
|
---|
[83f69e5d] | 144 | tool.</para>
|
---|
| 145 | <indexterm zone="python pydoc">
|
---|
| 146 | <primary sortas="b-pydoc">pydoc</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="python-prog">
|
---|
| 152 | <term><command>python</command></term>
|
---|
| 153 | <listitem>
|
---|
[7cd76d62] | 154 | <para>is an interpreted, interactive, object-oriented programming
|
---|
[83f69e5d] | 155 | language.</para>
|
---|
| 156 | <indexterm zone="python python-prog">
|
---|
| 157 | <primary sortas="b-python">python</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="python2.4">
|
---|
| 163 | <term><command>python2.4</command></term>
|
---|
| 164 | <listitem>
|
---|
[0619e6d] | 165 | <para>is a version-specific name for the <command>python</command>
|
---|
[83f69e5d] | 166 | program.</para>
|
---|
| 167 | <indexterm zone="python python2.4">
|
---|
| 168 | <primary sortas="b-python2.4">python2.4</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="smtpd.py">
|
---|
| 174 | <term><command>smtpd.py</command></term>
|
---|
| 175 | <listitem>
|
---|
[7cd76d62] | 176 | <para>is an SMTP proxy implemented in
|
---|
[83f69e5d] | 177 | <application>Python</application>.</para>
|
---|
| 178 | <indexterm zone="python smtpd.py">
|
---|
| 179 | <primary sortas="b-smtpd.py">smtpd.py</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | </variablelist>
|
---|
| 185 |
|
---|
| 186 | </sect2>
|
---|
[f45b1953] | 187 |
|
---|
| 188 | </sect1>
|
---|