Changeset 355495ce for general/prog
- Timestamp:
- 07/19/2012 04:27:40 PM (12 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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
- Children:
- b24bfef
- Parents:
- ea16306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python3.xml
rea16306 r355495ce 6 6 7 7 <!ENTITY python3-download-http 8 "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz"> 9 <!ENTITY python3-download-ftp 10 "&gentoo-ftp-repo;/Python-&python3-version;.tar.xz"> 11 <!ENTITY python3-md5sum "3720ce9460597e49264bbb63b48b946d"> 12 <!ENTITY python3-size "8.5 MB"> 13 <!ENTITY python3-buildsize "141 MB (23MB for the test suite)"> 14 <!ENTITY python3-time "1 SBU (additional 2.9 SBU to run the test suite)"> 8 "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz"> 9 <!ENTITY python3-download-ftp " "> 10 <!ENTITY python3-md5sum "187564726f2c1473d301c586acc24847"> 11 <!ENTITY python3-size "8.6 MB"> 12 <!ENTITY python3-buildsize "200 MB (30 MB for the test suite)"> 13 <!ENTITY python3-time "1.0 SBU (additional 3.0 SBU to run the test suite)"> 15 14 <!ENTITY python3htmldoc-download-http 16 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">17 <!ENTITY python3htmldoc-md5sum " 55af06e320f35920ea9fed1f143e1286">15 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2"> 16 <!ENTITY python3htmldoc-md5sum "c970e7bcbc3268a3dbc2de5c15b5a3d3"> 18 17 <!ENTITY python3htmldoc-size "4.2 MB"> 18 19 19 ]> 20 20 … … 36 36 <title>Introduction to Python</title> 37 37 38 <para>The <application>Python</application> package contains the 39 <application>Python</application> development environment. 40 This is useful for object-oriented programming, writing scripts, 41 prototyping large programs or developing entire applications.</para> 42 43 <!-- Python compiled against Pth, OpenSSL, and SQLite. 44 326 tests OK, 36 tests skipped, 0 failures --> 38 <para> 39 The <application>Python</application> package contains the 40 <application>Python</application> development environment. 41 This is useful for object-oriented programming, writing scripts, 42 prototyping large programs or developing entire applications. 43 </para> 45 44 46 45 &lfs71_checked; … … 49 48 <itemizedlist spacing="compact"> 50 49 <listitem> 51 <para>Download (HTTP): <ulink url="&python3-download-http;"/></para> 52 </listitem> 53 <listitem> 54 <para>Download (FTP): <ulink url="&python3-download-ftp;"/></para> 55 </listitem> 56 <listitem> 57 <para>Download MD5 sum: &python3-md5sum;</para> 58 </listitem> 59 <listitem> 60 <para>Download size: &python3-size;</para> 61 </listitem> 62 <listitem> 63 <para>Estimated disk space required: &python3-buildsize;</para> 64 </listitem> 65 <listitem> 66 <para>Estimated build time: &python3-time;</para> 50 <para> 51 Download (HTTP): <ulink url="&python3-download-http;"/> 52 </para> 53 </listitem> 54 <listitem> 55 <para> 56 Download (FTP): <ulink url="&python3-download-ftp;"/> 57 </para> 58 </listitem> 59 <listitem> 60 <para> 61 Download MD5 sum: &python3-md5sum; 62 </para> 63 </listitem> 64 <listitem> 65 <para> 66 Download size: &python3-size; 67 </para> 68 </listitem> 69 <listitem> 70 <para> 71 Estimated disk space required: &python3-buildsize; 72 </para> 73 </listitem> 74 <listitem> 75 <para> 76 Estimated build time: &python3-time; 77 </para> 67 78 </listitem> 68 79 </itemizedlist> 69 80 70 81 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 71 <!--<itemizedlist spacing='compact'> 72 <listitem> 73 <para>Required patch: <ulink 74 url="&patch-root;/Python-&Python-version;-bdb_4.8-1.patch"/></para> 75 </listitem> 76 </itemizedlist>--> 77 78 <itemizedlist spacing='compact'> 82 <itemizedlist spacing="compact"> 79 83 <title>Optional HTML Documentation</title> 80 84 <listitem> 81 <para>Download (HTTP): 82 <ulink url="&python3htmldoc-download-http;"/></para> 83 </listitem> 84 <listitem> 85 <para>Download MD5 sum: &python3htmldoc-md5sum;</para> 86 </listitem> 87 <listitem> 88 <para>Download size: &python3htmldoc-size;</para> 85 <para> 86 Download (HTTP): <ulink url="&python3htmldoc-download-http;"/> 87 </para> 88 </listitem> 89 <listitem> 90 <para> 91 Download MD5 sum: &python3htmldoc-md5sum; 92 </para> 93 </listitem> 94 <listitem> 95 <para> 96 Download size: &python3htmldoc-size; 97 </para> 89 98 </listitem> 90 99 </itemizedlist> … … 92 101 <bridgehead renderas="sect3">Python Dependencies</bridgehead> 93 102 103 <bridgehead renderas="sect4">Recommended</bridgehead> 104 <para role="recommended"> 105 <xref linkend="expat"/> and 106 <xref linkend="libffi"/> 107 </para> 108 94 109 <bridgehead renderas="sect4">Optional</bridgehead> 95 <para role="optional"><xref linkend="pth"/>, 96 <xref linkend="libffi"/> or <xref linkend="gcc"/> (install JAVA so that the 97 <filename class="libraryfile">libffi</filename> library is built), and 98 <xref linkend="bluez"/></para> 99 100 <bridgehead renderas="sect4">Optional 101 (to create package-specific support modules)</bridgehead> 102 <para role="optional"><xref linkend="openssl"/>, 103 <xref linkend="tk"/>, 104 <xref linkend="db"/>, and 105 <xref linkend="sqlite"/></para> 106 107 <para>Note that there is a circular dependency with the 108 <application>Tk</application> package as it requires Xorg to be installed 109 but parts of Xorg depend on <application>Python</application>.</para> 110 <para role="optional"> 111 <xref linkend="bluez"/> 112 </para> 113 114 <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead> 115 <para role="optional"> 116 <xref linkend="db"/> 117 <xref linkend="openssl"/>, 118 <xref linkend="sqlite"/> and 119 <xref linkend="tk"/> 120 </para> 110 121 111 122 <para condition="html" role="usernotes">User Notes: 112 <ulink url="&blfs-wiki;/Python"/></para>113 123 <ulink url="&blfs-wiki;/Python3"/> 124 </para> 114 125 </sect2> 115 126 … … 117 128 <title>Installation of Python</title> 118 129 119 <para>Install <application>Python</application> by running the following 120 commands:</para> 130 <para> 131 Install <application>Python</application> by running the following 132 commands: 133 </para> 121 134 122 135 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && 123 ./configure --prefix=/usr --enable-shared && 136 ./configure --prefix=/usr \ 137 --enable-shared \ 138 --with-wide-unicode \ 139 --with-system-expat \ 140 --with-system-ffi && 124 141 make</userinput></screen> 125 142 126 <para>To test the results, issue: <command>make test</command>. Note that 127 if you have an existing <application>Python</application> installation 128 which includes the <application>PyXML</application> module, the tests could 129 produce a segmentation fault.</para> 130 131 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 132 133 <screen role="root"><userinput>make install && 134 chmod -v 755 /usr/lib/libpython&python3-majorver;m.so.1.0 && 135 chmod -v 755 /usr/lib/libpython3.so </userinput></screen> 136 137 <para>There is no documentation installed using the instructions above. 138 See the <filename>Doc/README.txt</filename> file in the source 139 distribution for instructions on how to create the html. Alternatively, 140 you can download preformatted documentation from <ulink 141 url="http://docs.python.org/download.html"/>.</para> 142 143 <para>In order to use the <command>help ('name_string')</command> feature 144 of the <command>python</command> interpreter with some statements and 145 keywords, you must download (or create) the optional HTML documentation 146 and install it. If you downloaded the HTML docs, issue the following 147 commands as the 148 <systemitem class="username">root</systemitem> user:</para> 143 <para> 144 To test the results, issue: <command>make test</command>. Note that 145 if you have an existing <application>Python</application> installation 146 which includes the <application>PyXML</application> module, the tests could 147 produce a segmentation fault. 148 </para> 149 150 <para> 151 Now, as the <systemitem class="username">root</systemitem> user: 152 </para> 153 154 <screen role="root"><userinput>make install && 155 chmod -v 755 /usr/lib/libpython&python3-majorver;mu.so && 156 chmod -v 755 /usr/lib/libpython3.so</userinput></screen> 157 158 <para> 159 There is no documentation installed using the instructions above. 160 See the <filename>Doc/README.txt</filename> file in the source 161 distribution for instructions on how to create the html. Alternatively, 162 you can download preformatted documentation from 163 <ulink url="http://docs.python.org/download.html"/>. 164 </para> 165 166 <para> 167 In order to use the <command>help ('name_string')</command> feature 168 of the <command>python</command> interpreter with some statements and 169 keywords, you must download (or create) the optional HTML documentation 170 and install it. If you downloaded the HTML docs, issue the following 171 commands as the <systemitem class="username">root</systemitem> user: 172 </para> 149 173 150 174 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python3-version;/html && … … 160 184 <title>Command Explanations</title> 161 185 162 <para><command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command 163 is used to fix a build problem with the <application>GDBM</application> 164 library.</para> 165 166 <para><command>chmod ...</command>: Fix permissions for libraries to be 167 consistent with other libraries.</para> 186 <para> 187 <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command 188 is used to fix a build problem with the <application>GDBM</application> 189 library. 190 </para> 191 192 <para> 193 <option>--with-sytem-expat</option>: This switch enables linking against 194 system version of <application>Expat</application>. Remove if you have 195 not installed recommended dependency <xref linkend="expat"/>. 196 </para> 197 198 <para> 199 <option>--with-system-ffi</option>: This switch enables linking against 200 system version of <application>libffi</application>. Remove if you have 201 not installed recommended dependency <xref linkend="libffi"/>. 202 </para> 203 204 <para> 205 <command>chmod ...</command>: Fix permissions for shared libraries to be 206 consistent with other libraries. 207 </para> 168 208 169 209 </sect2> … … 172 212 <title>Configuring Python</title> 173 213 174 <para>In order for <command>python</command> to find the installed 175 documentation, you must add the following environment variable to 176 individual user's or the system's profile:</para> 214 <para> 215 In order for <command>python</command> to find the installed 216 documentation, you must add the following environment variable to 217 individual user's or the system's profile: 218 </para> 177 219 178 220 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&python3-version;/html</userinput></screen> … … 189 231 190 232 <seglistitem> 191 <seg>2to3, 192 193 pydoc3 (link to pydoc-&python3-majorver;), 194 pydoc&python3-majorver;, 195 196 python3, 197 python&python3-majorver; (hard link with python3), 198 python&python3-majorver;m (hard link with python3), 199 200 python3-config (link to python&python3-majorver;-config), 201 python&python3-majorver; (link to python&python3-majorver;m-config), 202 python&python3-majorver;m, 203 204 smtpd.py, and optionally if <application>Tk</application> is installed, 205 idle</seg> 206 207 <seg>libpython3.so, libpython&python3-majorver;m.so.1.0 and numerous 208 modules installed in /usr/lib/python&python3-majorver;</seg> 209 210 <seg>/usr/include/python&python3-majorver;, 211 /usr/lib/python&python3-majorver;, and 212 /usr/share/doc/python-&python3-version;</seg> 233 <seg> 234 2to3 (symbolic link to 2to3-&python3-majorver;), 235 2to3-&python3-majorver;, 236 237 pydoc3 (symbolic link to pydoc&python3-majorver;), 238 pydoc&python3-majorver;, 239 240 python3 (hard link to python&python3-majorver;mu), 241 python&python3-majorver; (hard link to python&python3-majorver;mu), 242 python&python3-majorver;mu, 243 244 python3-config (symbolic link to python&python3-majorver;-config), 245 python&python3-majorver;-config (symbolic link to python3-config), 246 python&python3-majorver;mu-config, 247 248 and optionally if Tk is installed, 249 idle3 (symbolic link to idle&python3-majorver;), 250 idle&python3-majorver; 251 </seg> 252 <seg> 253 libpython&python3-majorver;mu.so, libpython3.so and numerous 254 modules installed in /usr/lib/python&python3-majorver; 255 </seg> 256 <seg> 257 /usr/include/python&python3-majorver;mu, 258 /usr/lib/python&python3-majorver;, and 259 /usr/share/doc/python-&python3-version; 260 </seg> 213 261 </seglistitem> 214 262 </segmentedlist> … … 219 267 <?dbhtml list-presentation="table"?> 220 268 221 <varlistentry id="idle ">222 <term><command>idle </command></term>269 <varlistentry id="idle3"> 270 <term><command>idle3</command></term> 223 271 <listitem> 224 <para>is a wrapper script that opens a 225 <application>Python</application> aware GUI editor.</para> 226 <indexterm zone="python3 idle"> 227 <primary sortas="b-idle">idle</primary> 272 <para> 273 is a wrapper script that opens a 274 <application>Python</application> aware GUI editor. 275 </para> 276 <indexterm zone="python3 idle3"> 277 <primary sortas="b-idle3">idle3</primary> 228 278 </indexterm> 229 279 </listitem> 230 280 </varlistentry> 231 281 232 <varlistentry id="pydoc ">233 <term><command>pydoc </command></term>282 <varlistentry id="pydoc3"> 283 <term><command>pydoc3</command></term> 234 284 <listitem> 235 <para>is the <application>Python</application> documentation 236 tool.</para> 237 <indexterm zone="python3 pydoc"> 238 <primary sortas="b-pydoc">pydoc</primary> 285 <para> 286 is the <application>Python</application> documentation 287 tool. 288 </para> 289 <indexterm zone="python3 pydoc3"> 290 <primary sortas="b-pydoc3">pydo3c</primary> 239 291 </indexterm> 240 292 </listitem> … … 244 296 <term><command>python3</command></term> 245 297 <listitem> 246 <para>is an interpreted, interactive, object-oriented programming 247 language.</para> 298 <para> 299 is an interpreted, interactive, object-oriented programming 300 language. 301 </para> 248 302 <indexterm zone="python3 python3-prog"> 249 303 <primary sortas="b-python3">python3</primary> … … 255 309 <term><command>python&python3-majorver;</command></term> 256 310 <listitem> 257 <para>is a version-specific name for the <command>python</command> 258 program.</para> 311 <para> 312 is a version-specific name for the <command>python</command> 313 program. 314 </para> 259 315 <indexterm zone="python3 python-ver"> 260 316 <primary … … 264 320 </varlistentry> 265 321 266 <varlistentry id="smtpd.py">267 <term><command>smtpd.py</command></term>268 <listitem>269 <para>is an SMTP proxy implemented in270 <application>Python</application>.</para>271 <indexterm zone="python3 smtpd.py">272 <primary sortas="b-smtpd.py">smtpd.py</primary>273 </indexterm>274 </listitem>275 </varlistentry>276 277 322 </variablelist> 278 323
Note:
See TracChangeset
for help on using the changeset viewer.