mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
e204421d74
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3531 af4574ff-66df-0310-9fd7-8a98e5e911e0
154 lines
5.1 KiB
XML
154 lines
5.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY python-download-http "http://www.python.org/ftp/python/&Python-version;/Python-&Python-version;.tar.bz2">
|
|
<!ENTITY python-download-ftp "ftp://ftp.python.org/pub/python/&Python-version;/Python-&Python-version;.tar.bz2">
|
|
<!ENTITY python-md5sum "44c2226eff0f3fc1f2fedaa1ce596533">
|
|
<!ENTITY python-size "7.8 MB">
|
|
<!ENTITY python-buildsize "133 MB">
|
|
<!ENTITY python-time "1.01 SBU">
|
|
]>
|
|
|
|
<sect1 id="python" xreflabel="Python-&Python-version;">
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
<?dbhtml filename="Python.html" ?>
|
|
<title>Python-&Python-version;</title>
|
|
<indexterm zone="python">
|
|
<primary sortas="a-Python">Python</primary></indexterm>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>Python</application></title>
|
|
|
|
<para>The <application>Python</application> package contains the
|
|
<application>Python</application> development environment.
|
|
This is useful for object-oriented programming, writing scripts,
|
|
prototyping large programs or developing entire applications.</para>
|
|
|
|
<sect3><title>Package information</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Download (HTTP):
|
|
<ulink url="&python-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP):
|
|
<ulink url="&python-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download MD5 sum: &python-md5sum;</para></listitem>
|
|
<listitem><para>Download size: &python-size;</para></listitem>
|
|
<listitem><para>Estimated disk space required:
|
|
&python-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&python-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title>Additional downloads</title>
|
|
<itemizedlist spacing='compact'>
|
|
<listitem><para>Required patch: <ulink
|
|
url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para></listitem>
|
|
<listitem><para>Required patch for Berkeley DB: <ulink
|
|
url="&patch-root;/Python-&Python-version;-db43-1.patch"/></para></listitem>
|
|
<listitem><para>Required patch (see
|
|
<ulink url="http://www.python.org/security/PSF-2005-001/"/>): <ulink
|
|
url="http://www.python.org/security/PSF-2005-001/patch.txt"/></para></listitem>
|
|
</itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title><application>Python</application> dependencies</title>
|
|
<sect4><title>Optional</title>
|
|
<para><xref linkend="openssl"/>,
|
|
<xref linkend="tk"/>,
|
|
<xref linkend="gdbm"/> and
|
|
<xref linkend="db"/></para>
|
|
</sect4>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>Python</application></title>
|
|
|
|
<para>If you have Berkeley <application>DB</application> installed and wish to
|
|
utilize it, apply the following patch:</para>
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-db43-1.patch</command></userinput></screen>
|
|
|
|
<para>Install <application>Python</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput><command>patch -Np0 -i ../patch.txt &&
|
|
patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &&
|
|
./configure --prefix=/usr --enable-shared &&
|
|
make</command></userinput></screen>
|
|
|
|
<para>Now, as the root user:</para>
|
|
|
|
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>pydoc, python, smtpd.py and optionally if <application>Tk</application>
|
|
is installed, idle</seg>
|
|
<seg>libpython&Python-version;.so and numerous modules installed in
|
|
/usr/lib/python&Python-version;/lib-dynload</seg>
|
|
<seg>/usr/include/python&Python-version;
|
|
and /usr/lib/python&Python-version;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<varlistentry id="idle">
|
|
<term><command>idle</command></term>
|
|
<listitem><para>is a wrapper script that opens a
|
|
<application>Python</application> aware <acronym>GUI</acronym> editor.</para>
|
|
<indexterm zone="python idle">
|
|
<primary sortas="b-idle">idle</primary>
|
|
</indexterm></listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pydoc">
|
|
<term><command>pydoc</command></term>
|
|
<listitem><para>is the <application>Python</application> documentation
|
|
tool.</para>
|
|
<indexterm zone="python pydoc">
|
|
<primary sortas="b-pydoc">pydoc</primary>
|
|
</indexterm></listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="python-prog">
|
|
<term><command>python</command></term>
|
|
<listitem><para>is an interpreted, interactive, object-oriented programming
|
|
language.</para>
|
|
<indexterm zone="python python-prog">
|
|
<primary sortas="b-python">python</primary>
|
|
</indexterm></listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="smtpd.py">
|
|
<term><command>smtpd.py</command></term>
|
|
<listitem><para>is an <acronym>SMTP</acronym> proxy implemented in
|
|
<application>Python</application>.</para>
|
|
<indexterm zone="python smtpd.py">
|
|
<primary sortas="b-smtpd.py">smtpd.py</primary>
|
|
</indexterm></listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|