[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">
|
---|
[775c349a] | 9 | <!ENTITY python-size "7.5 MB">
|
---|
| 10 | <!ENTITY python-buildsize "133 MB">
|
---|
| 11 | <!ENTITY python-time "1.01 SBU">
|
---|
[52d29f7] | 12 | ]>
|
---|
| 13 |
|
---|
[3fe8b511] | 14 | <sect1 id="python" xreflabel="Python-&Python-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="Python.html" ?>
|
---|
[3fe8b511] | 20 | <title>Python-&Python-version;</title>
|
---|
[f45b1953] | 21 |
|
---|
[52d29f7] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Python</application></title>
|
---|
[e9ef7b5e] | 24 |
|
---|
[52d29f7] | 25 | <para>The <application>Python</application> package contains the
|
---|
| 26 | <application>Python</application> development environment.
|
---|
| 27 | This is useful for object-oriented programming, writing scripts,
|
---|
| 28 | prototyping large programs or developing entire applications.</para>
|
---|
[e9ef7b5e] | 29 |
|
---|
[52d29f7] | 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
[775c349a] | 32 | <listitem><para>Download (HTTP): <ulink url="&python-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP): <ulink url="&python-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &python-size;</para></listitem>
|
---|
| 35 | <listitem><para>Estimated disk space required: &python-buildsize;</para></listitem>
|
---|
| 36 | <listitem><para>Estimated build time: &python-time;</para></listitem></itemizedlist>
|
---|
[52d29f7] | 37 | </sect3>
|
---|
[e9ef7b5e] | 38 |
|
---|
[52d29f7] | 39 | <sect3><title>Additional downloads</title>
|
---|
| 40 | <itemizedlist spacing='compact'>
|
---|
[775c349a] | 41 | <listitem><para>Required patch: <ulink
|
---|
[3fe8b511] | 42 | url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para></listitem>
|
---|
[93c1bf51] | 43 | <listitem><para>Required patch for Berkeley DB: <ulink
|
---|
| 44 | url="&patch-root;/Python-&Python-version;-db43-1.patch"/></para></listitem>
|
---|
[52d29f7] | 45 | </itemizedlist>
|
---|
| 46 | </sect3>
|
---|
[e9ef7b5e] | 47 |
|
---|
[52d29f7] | 48 | <sect3><title><application>Python</application> dependencies</title>
|
---|
| 49 | <sect4><title>Optional</title>
|
---|
[939cf0da] | 50 | <para><xref linkend="openssl-package"/>,
|
---|
[775c349a] | 51 | <xref linkend="tk"/>,
|
---|
| 52 | <xref linkend="gdbm"/> and
|
---|
| 53 | <xref linkend="db"/></para>
|
---|
[54f3179] | 54 | </sect4>
|
---|
[52d29f7] | 55 | </sect3>
|
---|
| 56 |
|
---|
[e9ef7b5e] | 57 | </sect2>
|
---|
[52d29f7] | 58 |
|
---|
| 59 | <sect2>
|
---|
| 60 | <title>Installation of <application>Python</application></title>
|
---|
[e9ef7b5e] | 61 |
|
---|
[93c1bf51] | 62 | <para>If you have Berkeley DB installed and wish to utilize it, apply
|
---|
| 63 | the following patch:</para>
|
---|
| 64 |
|
---|
[cb83205] | 65 | <screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-db43-1.patch</command></userinput></screen>
|
---|
[93c1bf51] | 66 |
|
---|
[e9ef7b5e] | 67 | <para>Install <application>Python</application> by running the following
|
---|
[99b29a4] | 68 | commands:</para>
|
---|
[e9ef7b5e] | 69 |
|
---|
[3fe8b511] | 70 | <screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
---|
[52d29f7] | 71 | ./configure --prefix=/usr --enable-shared &&
|
---|
| 72 | make &&
|
---|
| 73 | make install</command></userinput></screen>
|
---|
[e9ef7b5e] | 74 |
|
---|
[52d29f7] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2>
|
---|
| 78 | <title>Contents</title>
|
---|
[e9ef7b5e] | 79 |
|
---|
| 80 | <para>The <application>Python</application> package contains
|
---|
[775c349a] | 81 | <command>python</command>,
|
---|
| 82 | <command>pydoc</command>,
|
---|
| 83 | <command>smtpd.py</command> and
|
---|
[e9ef7b5e] | 84 | <application>Python</application> libraries, modules and scripts. If
|
---|
| 85 | <application>Tk</application> is installed, the <command>idle</command>
|
---|
[5b287d4] | 86 | script will also be installed.</para>
|
---|
[e9ef7b5e] | 87 |
|
---|
[52d29f7] | 88 | </sect2>
|
---|
[e9ef7b5e] | 89 |
|
---|
[52d29f7] | 90 | <sect2><title>Description</title>
|
---|
[e9ef7b5e] | 91 |
|
---|
[52d29f7] | 92 | <sect3><title>python</title>
|
---|
[e9ef7b5e] | 93 | <para><command>python</command> is an interpreted, interactive,
|
---|
[99b29a4] | 94 | object-oriented programming language.</para></sect3>
|
---|
[e9ef7b5e] | 95 |
|
---|
[52d29f7] | 96 | <sect3><title>pydoc</title>
|
---|
[e9ef7b5e] | 97 | <para><command>pydoc</command> is the <application>Python</application>
|
---|
[99b29a4] | 98 | documentation tool.</para></sect3>
|
---|
[e9ef7b5e] | 99 |
|
---|
[775c349a] | 100 | <sect3><title>smtpd.py</title>
|
---|
| 101 | <para><command>smtpd.py</command> is a <acronym>SMTP</acronym> proxy
|
---|
| 102 | implemented in <application>Python</application>.</para></sect3>
|
---|
| 103 |
|
---|
[99b29a4] | 104 | <sect3><title>idle</title>
|
---|
[e9ef7b5e] | 105 | <para><command>idle</command> is a wrapper script that opens a
|
---|
| 106 | <application>Python</application> aware <acronym>GUI</acronym>
|
---|
[5b287d4] | 107 | editor.</para></sect3>
|
---|
[e9ef7b5e] | 108 |
|
---|
[52d29f7] | 109 | </sect2>
|
---|
[f45b1953] | 110 |
|
---|
| 111 | </sect1>
|
---|