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 one of
|
---|
39 | the above programs.
|
---|
40 | </para>
|
---|
41 | </note>
|
---|
42 |
|
---|
43 | &lfs121_checked;
|
---|
44 |
|
---|
45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
46 | <itemizedlist spacing="compact">
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (HTTP): <ulink url="&python311-download-http;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &python311-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &python311-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &python311-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &python311-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">Python 3.11 Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
77 | <para role="recommended">
|
---|
78 | <xref linkend="sqlite"/> (required if building firefox or thunderbird)
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="installation">
|
---|
84 | <title>Installation of Python 3.11</title>
|
---|
85 |
|
---|
86 | <para>
|
---|
87 | Install <application>Python 3.11</application> by running the following
|
---|
88 | commands:
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <screen><userinput>CXX="/usr/bin/g++" \
|
---|
92 | ./configure --prefix=/opt/python3.11 \
|
---|
93 | --disable-shared \
|
---|
94 | --with-system-expat &&
|
---|
95 | make</userinput></screen>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | Since this package is only used in very limited situations,
|
---|
99 | tests are not recommended.
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2 role="commands">
|
---|
111 | <title>Command Explanations</title>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | <command> CXX="/usr/bin/g++" ./configure ...</command>: Avoid an annoying
|
---|
115 | message during configuration.
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | <parameter>--prefix=/opt/python3.11</parameter>: This installs python
|
---|
120 | 3.11 into /opt in order to avoid conflicts with the system version of
|
---|
121 | python, and allows for easy removal/isolation once programs update to
|
---|
122 | python3.12 or later.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | <parameter>--disable-shared</parameter>: This switch disables building
|
---|
127 | shared libraries. Since all the packages that need python-3.11 have built
|
---|
128 | in modules and don't directly link to python, it is safe to turn off
|
---|
129 | shared library support.
|
---|
130 | </para>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | <parameter>--with-system-expat</parameter>: This switch enables linking
|
---|
134 | against the system version of <application>Expat</application>.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | </sect2>
|
---|
138 |
|
---|
139 | <sect2 role="content">
|
---|
140 | <title>Contents</title>
|
---|
141 |
|
---|
142 | <segmentedlist>
|
---|
143 | <segtitle>Installed Programs</segtitle>
|
---|
144 | <segtitle>Installed Libraries</segtitle>
|
---|
145 | <segtitle>Installed Directories</segtitle>
|
---|
146 |
|
---|
147 | <seglistitem>
|
---|
148 | <seg>
|
---|
149 | python3.11
|
---|
150 | </seg>
|
---|
151 | <seg>
|
---|
152 | libpython3.11.a
|
---|
153 | </seg>
|
---|
154 | <seg>
|
---|
155 | /opt/python3.11/include/python3.11, and
|
---|
156 | /opt/python3.11/lib/python3.11,
|
---|
157 | </seg>
|
---|
158 | </seglistitem>
|
---|
159 | </segmentedlist>
|
---|
160 |
|
---|
161 | <variablelist>
|
---|
162 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
163 | <?dbfo list-presentation="list"?>
|
---|
164 | <?dbhtml list-presentation="table"?>
|
---|
165 |
|
---|
166 | <varlistentry id="python311-ver">
|
---|
167 | <term><command>python3.11</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>
|
---|
170 | is a version-specific name for the <command>python</command>
|
---|
171 | program
|
---|
172 | </para>
|
---|
173 | <indexterm zone="python311 python311-ver">
|
---|
174 | <primary sortas="b-python3.11">python3.11</primary>
|
---|
175 | </indexterm>
|
---|
176 | </listitem>
|
---|
177 | </varlistentry>
|
---|
178 | </variablelist>
|
---|
179 |
|
---|
180 | </sect2>
|
---|
181 |
|
---|
182 | </sect1>
|
---|