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