source: general/prog/python.xml@ f0a7519

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f0a7519 was 9824250, checked in by Randy McMurchy <randy@…>, 19 years ago

Added MD5 sum and indexing tags to Python instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3374 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.9 KB
Line 
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
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">
9<!ENTITY python-md5sum "44c2226eff0f3fc1f2fedaa1ce596533">
10<!ENTITY python-size "7.8 MB">
11<!ENTITY python-buildsize "133 MB">
12<!ENTITY python-time "1.01 SBU">
13]>
14
15<sect1 id="python" xreflabel="Python-&Python-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="Python.html" ?>
21<title>Python-&Python-version;</title>
22<indexterm zone="python">
23<primary sortas="a-Python">Python</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Python</application></title>
27
28<para>The <application>Python</application> package contains the
29<application>Python</application> development environment.
30This is useful for object-oriented programming, writing scripts,
31prototyping large programs or developing entire applications.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
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>
40<listitem><para>Download size: &python-size;</para></listitem>
41<listitem><para>Estimated disk space required:
42&python-buildsize;</para></listitem>
43<listitem><para>Estimated build time:
44&python-time;</para></listitem></itemizedlist>
45</sect3>
46
47<sect3><title>Additional downloads</title>
48<itemizedlist spacing='compact'>
49<listitem><para>Required patch: <ulink
50url="&patch-root;/Python-&Python-version;-gdbm-1.patch"/></para></listitem>
51<listitem><para>Required patch for Berkeley DB: <ulink
52url="&patch-root;/Python-&Python-version;-db43-1.patch"/></para></listitem>
53</itemizedlist>
54</sect3>
55
56<sect3><title><application>Python</application> dependencies</title>
57<sect4><title>Optional</title>
58<para><xref linkend="openssl"/>,
59<xref linkend="tk"/>,
60<xref linkend="gdbm"/> and
61<xref linkend="db"/></para>
62</sect4>
63</sect3>
64
65</sect2>
66
67<sect2>
68<title>Installation of <application>Python</application></title>
69
70<para>If you have Berkeley <application>DB</application> installed and wish to
71utilize it, apply the following patch:</para>
72
73<screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-db43-1.patch</command></userinput></screen>
74
75<para>Install <application>Python</application> by running the following
76commands:</para>
77
78<screen><userinput><command>patch -Np1 -i ../Python-&Python-version;-gdbm-1.patch &amp;&amp;
79./configure --prefix=/usr --enable-shared &amp;&amp;
80make</command></userinput></screen>
81
82<para>Now, as the root user:</para>
83
84<screen><userinput role='root'><command>make install</command></userinput></screen>
85
86</sect2>
87
88<sect2>
89<title>Contents</title>
90
91<segmentedlist>
92<segtitle>Installed Programs</segtitle>
93<segtitle>Installed Libraries</segtitle>
94<segtitle>Installed Directories</segtitle>
95
96<seglistitem>
97<seg>pydoc, python, smtpd.py and optionally if <application>Tk</application>
98is installed, idle</seg>
99<seg>libpython&Python-version;.so and numerous modules installed in
100/usr/lib/python&Python-version;/lib-dynload</seg>
101<seg>/usr/include/python&Python-version;
102and /usr/lib/python&Python-version;</seg>
103</seglistitem>
104</segmentedlist>
105
106<variablelist>
107<bridgehead renderas="sect3">Short Descriptions</bridgehead>
108<?dbfo list-presentation="list"?>
109
110<varlistentry id="idle">
111<term><command>idle</command></term>
112<listitem><para>is a wrapper script that opens a
113<application>Python</application> aware <acronym>GUI</acronym> editor.</para>
114<indexterm zone="python idle">
115<primary sortas="b-idle">idle</primary>
116</indexterm></listitem>
117</varlistentry>
118
119<varlistentry id="pydoc">
120<term><command>pydoc</command></term>
121<listitem><para>is the <application>Python</application> documentation
122tool.</para>
123<indexterm zone="python pydoc">
124<primary sortas="b-pydoc">pydoc</primary>
125</indexterm></listitem>
126</varlistentry>
127
128<varlistentry id="python-prog">
129<term><command>python</command></term>
130<listitem><para>is an interpreted, interactive, object-oriented programming
131language.</para>
132<indexterm zone="python python-prog">
133<primary sortas="b-python">python</primary>
134</indexterm></listitem>
135</varlistentry>
136
137<varlistentry id="smtpd.py">
138<term><command>smtpd.py</command></term>
139<listitem><para>is an <acronym>SMTP</acronym> proxy implemented in
140<application>Python</application>.</para>
141<indexterm zone="python smtpd.py">
142<primary sortas="b-smtpd.py">smtpd.py</primary>
143</indexterm></listitem>
144</varlistentry>
145</variablelist>
146
147</sect2>
148
149</sect1>
Note: See TracBrowser for help on using the repository browser.