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/python2.xml

    rb09c33f2 r03d30cf  
    88          "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz">
    99  <!ENTITY python2-download-ftp  " ">
    10   <!ENTITY python2-md5sum        "62c4c1699170078c469f79ddfed21bc0">
    11   <!ENTITY python2-size          "9.6 MB">
     10  <!ENTITY python2-md5sum        "62704ea0f125923208d84ff0568f7d50">
     11  <!ENTITY python2-size          "12 MB">
    1212  <!ENTITY python2-buildsize     "235 MB (not including the test suite)">
    13   <!ENTITY python2-time          "1.1 SBU (not including the test suite)">
     13  <!ENTITY python2-time          "1.0 SBU (not including the test suite)">
    1414
    1515  <!ENTITY python2htmldoc-download-http
    1616           "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2">
    17   <!ENTITY python2htmldoc-md5sum        "101c13d39f76fd6706aac3a9196b2f01">
    18   <!ENTITY python2htmldoc-size          "4.2 MB">
     17  <!ENTITY python2htmldoc-md5sum        "45be073ad81e1b2f6ad1fa25132f60c6">
     18  <!ENTITY python2htmldoc-size          "4.3 MB">
    1919]>
    2020
     
    101101    </itemizedlist>
    102102
    103     <bridgehead renderas="sect3">Additional Patches</bridgehead>
    104     <itemizedlist spacing="compact">
    105       <listitem>
    106         <para>
    107           Required patch:
    108           <ulink url="&patch-root;/Python-&python2-version;-bsddb_fix-1.patch"/>
    109         </para>
    110       </listitem>
    111     </itemizedlist>
    112 
    113     <bridgehead renderas="sect3">Python Dependencies</bridgehead>
     103    <bridgehead renderas="sect3">Python 2 Dependencies</bridgehead>
    114104
    115105    <bridgehead renderas="sect4">Recommended</bridgehead>
     
    122112    <bridgehead renderas="sect4">Optional</bridgehead>
    123113    <para role="optional">
    124       <xref linkend="bluez"/> and
    125       <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink>
     114      <xref linkend="bluez"/>
    126115    </para>
    127116
     
    140129
    141130  <sect2 role="installation">
    142     <title>Installation of Python</title>
    143 
    144     <para>
    145       Install <application>Python</application> by running the following
     131    <title>Installation of Python 2</title>
     132
     133    <para>
     134      Install <application>Python 2</application> by running the following
    146135      commands:
    147136    </para>
    148137
    149 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py &amp;&amp;
    150 patch -Np1 -i ../Python-&python2-version;-bsddb_fix-1.patch &amp;&amp;
    151 ./configure --prefix=/usr       \
     138<screen><userinput>./configure --prefix=/usr       \
    152139            --enable-shared     \
    153140            --with-system-expat \
     
    161148
    162149    <para>
    163       In order to use the <command>help ('name_string')</command> feature of the
    164       <command>python</command> interpreter with some statements and keywords,
    165       you must create or download the optional HTML documentation.
    166     </para>
    167 
    168     <para>
    169       If you have installed <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink>
    170       and wish to create the HTML documentation:
    171     </para>
    172 
    173 <screen><userinput>make -C Doc html</userinput></screen>
    174 
    175     <para>
    176150      Now, as the <systemitem class="username">root</systemitem> user:
    177151    </para>
     
    181155
    182156    <para>
    183       If you created the html documentation with
    184       <application>Sphinx</application> then install it as the
    185       <systemitem class="username">root</systemitem> user:
    186     </para>
    187 
    188 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python2-version; &amp;&amp;
    189 cp -rfv Doc/build/html/* /usr/share/doc/python-&python2-version;</userinput></screen>
    190 
    191     <para>
    192       Alternatively, you can download preformatted documentation from
    193       <ulink url="http://docs.python.org/download.html"/> and install it as the
    194       <systemitem class="username">root</systemitem> user:
    195     </para>
    196 
    197 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python2-version; &amp;&amp;
    198 tar --strip-components=1 -C /usr/share/doc/Python-&python2-version; \
     157      If you have downloaded the preformatted documentation from
     158      <ulink url="http://docs.python.org/download.html"/>, install it
     159      as the <systemitem class="username">root</systemitem> user:
     160    </para>
     161
     162<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/python-&python2-version; &amp;&amp;
     163tar --strip-components=1 -C /usr/share/doc/python-&python2-version; \
    199164    -xvf ../python-&python2-version;-docs-html.tar.bz2                      &amp;&amp;
    200 find /usr/share/doc/Python-&python2-version; -type d -exec chmod 0755 {} \; &amp;&amp;
    201 find /usr/share/doc/Python-&python2-version; -type f -exec chmod 0644 {} \;</userinput></screen>
     165find /usr/share/doc/python-&python2-version; -type d -exec chmod 0755 {} \; &amp;&amp;
     166find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</userinput></screen>
    202167  </sect2>
    203168
     
    206171
    207172    <para>
    208       <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command is
    209       used to fix a build problem with the <application>GDBM</application>
    210       library.
    211     </para>
    212 
    213     <para>
    214173      <option>--with-system-expat</option>: This switch enables linking against
    215174      system version of <application>Expat</application>. Remove if you have
    216       not installed recommended dependency <xref linkend="expat"/>.
     175      not installed <xref linkend="expat"/>.
    217176    </para>
    218177
     
    220179      <option>--with-system-ffi</option>: This switch enables linking against
    221180      system version of <application>libffi</application>. Remove if you have
    222       not installed recommended dependency <xref linkend="libffi"/>.
     181      not installed <xref linkend="libffi"/>.
    223182    </para>
    224183
     
    251210    </para>
    252211
    253 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&python2-version;</userinput></screen>
     212<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python2-version;</userinput></screen>
    254213
    255214  </sect2>
     
    260219    <segmentedlist>
    261220      <segtitle>Installed Programs</segtitle>
    262       <segtitle>Installed Libraries</segtitle>
     221      <segtitle>Installed Library</segtitle>
    263222      <segtitle>Installed Directories</segtitle>
    264223
    265224      <seglistitem>
    266225        <seg>
    267           2to3, pydoc, python, python-config, python&python2-majorver;,
    268           python&python2-majorver;-config, smtpd.py, and optionally if
    269           <application>Tk</application> is installed, idle
     226          2to3, pydoc, python, python-config, python2, python2-config,
     227          python&python2-majorver;, python&python2-majorver;-config,
     228          smtpd.py, and optionally if <application>Tk</application>
     229          is installed, idle
    270230        </seg>
    271231        <seg>
    272           libpython&python2-majorver;.so and numerous modules installed in
    273           /usr/lib/python&python2-majorver;/lib-dynload
     232          libpython&python2-majorver;.so
    274233        </seg>
    275234        <seg>
     
    300259      </varlistentry>
    301260
    302       <varlistentry id="idle2">
     261      <varlistentry id="idle">
    303262        <term><command>idle</command></term>
    304263        <listitem>
     
    307266            aware GUI editor.
    308267          </para>
    309           <indexterm zone="python2 idle2">
    310             <primary sortas="b-idle2">idle</primary>
     268          <indexterm zone="python2 idle">
     269            <primary sortas="b-idle">idle</primary>
    311270          </indexterm>
    312271        </listitem>
     
    351310      </varlistentry>
    352311
    353       <varlistentry id="smtpd.py2">
     312      <varlistentry id="smtpd.py">
    354313        <term><command>smtpd.py</command></term>
    355314        <listitem>
     
    357316            is an SMTP proxy implemented in <application>Python</application>.
    358317          </para>
    359           <indexterm zone="python2 smtpd.py2">
    360             <primary sortas="b-smtpd.py2">smtpd.py</primary>
     318          <indexterm zone="python2 smtpd.py">
     319            <primary sortas="b-smtpd.py">smtpd.py</primary>
    361320          </indexterm>
    362321        </listitem>
Note: See TracChangeset for help on using the changeset viewer.