Ignore:
Timestamp:
04/07/2013 10:08:27 AM (11 years ago)
Author:
Krejzi <krejzi@…>
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:
388d294
Parents:
b09c33f2
Message:

Package updates.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11140 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python3.xml

    rb09c33f2 r03d30cf  
    88           "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz">
    99  <!ENTITY python3-download-ftp  " ">
    10   <!ENTITY python3-md5sum        "2e7533b4009ac4adae62a7797a442e7a">
    11   <!ENTITY python3-size          "11.2 MB">
    12   <!ENTITY python3-buildsize     "141 MB (additional 32 MB for the test suite)">
    13   <!ENTITY python3-time          "1.2 SBU (additional 2.2 SBU to run the test suite)">
     10  <!ENTITY python3-md5sum        "993232d9f4d9b4863cc1ec69a792e9cd">
     11  <!ENTITY python3-size          "12 MB">
     12  <!ENTITY python3-buildsize     "260 MB (not including the testsuite)">
     13  <!ENTITY python3-time          "1.2 SBU (not including the testsuite)">
    1414
    1515  <!ENTITY python3htmldoc-download-http
    1616           "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">
    17   <!ENTITY python3htmldoc-md5sum        "d8de7264eb5b03b54044825b765324c7">
     17  <!ENTITY python3htmldoc-md5sum        "e730def6cc4d6dddb076aae82661b6d6">
    1818  <!ENTITY python3htmldoc-size          "4.6 MB">
    1919]>
     
    3030
    3131  <indexterm zone="python3">
    32     <primary sortas="a-Python3">Python</primary>
     32    <primary sortas="a-Python3">Python3</primary>
    3333  </indexterm>
    3434
    3535  <sect2 role="package">
    36     <title>Introduction to Python</title>
    37 
    38     <para>
    39       The <application>Python</application> package contains the
     36    <title>Introduction to Python 3</title>
     37
     38    <para>
     39      The <application>Python 3</application> package contains the
    4040      <application>Python</application> development environment.
    4141      This is useful for object-oriented programming, writing scripts,
     
    9999    </itemizedlist>
    100100
    101     <bridgehead renderas="sect3">Python Dependencies</bridgehead>
     101    <bridgehead renderas="sect3">Python 3 Dependencies</bridgehead>
    102102
    103103    <bridgehead renderas="sect4">Recommended</bridgehead>
     
    127127
    128128  <sect2 role="installation">
    129     <title>Installation of Python</title>
    130 
    131     <para>
    132       Install <application>Python</application> by running the following
     129    <title>Installation of Python 3</title>
     130
     131    <para>
     132      Install <application>Python 3</application> by running the following
    133133      commands:
    134134    </para>
    135135
    136 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py &amp;&amp;
    137 ./configure --prefix=/usr       \
     136<screen><userinput>./configure --prefix=/usr       \
    138137            --enable-shared     \
    139138            --with-system-expat \
     
    142141
    143142    <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.
     143      To test the results, issue: <command>make test</command>.
    148144    </para>
    149145
     
    157153
    158154    <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>
    173 
    174 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python3-version;/html &amp;&amp;
     155      If you have downloaded the preformatted documentation from
     156      <ulink url="http://docs.python.org/download.html"/>, install it
     157      as the <systemitem class="username">root</systemitem> user:
     158    </para>
     159
     160<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/python-&python3-version;/html &amp;&amp;
    175161tar --strip-components=1 \
    176162    --no-same-owner \
    177163    --no-same-permissions \
    178     -C /usr/share/doc/Python-&python3-version;/html \
     164    -C /usr/share/doc/python-&python3-version;/html \
    179165    -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
    180166
     
    183169  <sect2 role="commands">
    184170    <title>Command Explanations</title>
    185 
    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>
    191171
    192172    <para>
     
    217197
    218198  <sect2 role="configuration">
    219     <title>Configuring Python</title>
    220 
    221     <para>
    222       In order for <command>python</command> to find the installed
     199    <title>Configuring Python 3</title>
     200
     201    <para>
     202      In order for <command>python3</command> to find the installed
    223203      documentation, you must add the following environment variable to
    224204      individual user's or the system's profile:
    225205    </para>
    226206
    227 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&python3-version;/html</userinput></screen>
     207<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen>
    228208
    229209  </sect2>
     
    258238        </seg>
    259239        <seg>
    260           libpython&python3-majorver;m.so, libpython3.so and numerous
    261           modules installed in /usr/lib/python&python3-majorver;
     240          libpython&python3-majorver;m.so and libpython3.so
    262241        </seg>
    263242        <seg>
Note: See TracChangeset for help on using the changeset viewer.