source: general/prog/python311.xml@ ba902771

trunk
Last change on this file since ba902771 was c9953e2, checked in by Douglas R. Reno <renodr@…>, 3 weeks ago

Python 3.11: text update since the only program that uses it now is
Seamonkey

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6 <!-- Remove once mozilla programs can use python 3.12 -->
7 <!ENTITY python311-download-http
8 "https://www.python.org/ftp/python/&python311-version;/Python-&python311-version;.tar.xz">
9 <!ENTITY python311-md5sum "4efe92adf28875c77d3b9b2e8d3bc44a">
10 <!ENTITY python311-size "19 MB">
11 <!ENTITY python311-buildsize "301 MB">
12 <!ENTITY python311-time "1.1 SBU (Using parallelism=4)">
13]>
14
15<sect1 id="python311" xreflabel="Python-&python311-version;">
16 <?dbhtml filename="python311.html" ?>
17
18 <title>Python-&python311-version;</title>
19
20 <indexterm zone="python311">
21 <primary sortas="a-Python3.11">Python3.11</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to Python 3.11</title>
26
27 <para>
28 The <application>Python 3.11</application> package contains an
29 older version of the <application>Python</application> development
30 environment. This is <emphasis role="bold">only</emphasis> needed for
31 building <xref linkend='seamonkey'/>
32 because its build system has not been updated to support
33 <xref linkend="python3"/>.
34 </para>
35
36 <note>
37 <para>
38 Do NOT install this package if you are not installing Seamonkey.
39 </para>
40 </note>
41
42 &lfs122_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&python311-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &python311-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &python311-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &python311-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &python311-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Python 3.11 Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Recommended</bridgehead>
76 <para role="recommended">
77 <xref linkend="sqlite"/> (required if building firefox or thunderbird)
78 </para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of Python 3.11</title>
84
85 <para>
86 Install <application>Python 3.11</application> by running the following
87 commands:
88 </para>
89
90<screen><userinput>CXX="/usr/bin/g++" \
91./configure --prefix=/opt/python3.11 \
92 --disable-shared \
93 --with-system-expat &amp;&amp;
94make</userinput></screen>
95
96 <para>
97 Since this package is only used in very limited situations,
98 tests are not recommended.
99 </para>
100
101 <para>
102 Now, as the <systemitem class="username">root</systemitem> user:
103 </para>
104
105<screen role="root"><userinput>make install</userinput></screen>
106
107 </sect2>
108
109 <sect2 role="commands">
110 <title>Command Explanations</title>
111
112 <para>
113 <command> CXX="/usr/bin/g++" ./configure ...</command>: Avoid an annoying
114 message during configuration.
115 </para>
116
117 <para>
118 <parameter>--prefix=/opt/python3.11</parameter>: This installs python
119 3.11 into /opt in order to avoid conflicts with the system version of
120 python, and allows for easy removal/isolation once programs update to
121 python3.12 or later.
122 </para>
123
124 <para>
125 <parameter>--disable-shared</parameter>: This switch disables building
126 shared libraries. Since all the packages that need python-3.11 have built
127 in modules and don't directly link to python, it is safe to turn off
128 shared library support.
129 </para>
130
131 <para>
132 <parameter>--with-system-expat</parameter>: This switch enables linking
133 against the system version of <application>Expat</application>.
134 </para>
135
136 </sect2>
137
138 <sect2 role="content">
139 <title>Contents</title>
140
141 <segmentedlist>
142 <segtitle>Installed Programs</segtitle>
143 <segtitle>Installed Libraries</segtitle>
144 <segtitle>Installed Directories</segtitle>
145
146 <seglistitem>
147 <seg>
148 python3.11
149 </seg>
150 <seg>
151 libpython3.11.a
152 </seg>
153 <seg>
154 /opt/python3.11/include/python3.11, and
155 /opt/python3.11/lib/python3.11,
156 </seg>
157 </seglistitem>
158 </segmentedlist>
159
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="python311-ver">
166 <term><command>python3.11</command></term>
167 <listitem>
168 <para>
169 is a version-specific name for the <command>python</command>
170 program
171 </para>
172 <indexterm zone="python311 python311-ver">
173 <primary sortas="b-python3.11">python3.11</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177 </variablelist>
178
179 </sect2>
180
181</sect1>
Note: See TracBrowser for help on using the repository browser.