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