Changeset 61f684f2


Ignore:
Timestamp:
11/05/2020 01:31:04 AM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
0024c34
Parents:
cc852ff
Message:

Fix python2's install procedures to omit

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python2.xml

    rcc852ff r61f684f2  
    128128  <sect2 role="installation">
    129129    <title>Installation of Python 2</title>
    130 
     130<!--
    131131    <caution>
    132132      <para>
    133133        After installing this package or
    134134        updating <application>pip2</application> with the command
    135         <command>pip2 install --upgrade pip</command>, it will remove
     135        <command>pip2 install - -upgrade pip</command>, it will remove
    136136        <application>pip3</application> installed in LFS. To reset
    137137        <application>pip</application> and <application>pip3</application>,
     
    139139      </para>
    140140
    141 <screen role="nodump"><userinput>python3 -m pip install --force pip</userinput></screen>
     141<screen role="nodump"><userinput>python3 -m pip install - -force pip</userinput></screen>
    142142    </caution>
     143-->
     144    <para>
     145      First, disable the installation of a script that overwrites a more
     146      recent script:
     147    </para>
     148
     149<screen><userinput>sed -i '/2to3/d' ./setup.py</userinput></screen>
    143150
    144151    <para>
     
    151158            --with-system-expat \
    152159            --with-system-ffi   \
    153             --with-ensurepip=yes \
    154160            --enable-unicode=ucs4 &amp;&amp;
    155161make</userinput></screen>
     
    163169    </para>
    164170
    165 <screen role="root"><userinput>make install &amp;&amp;
     171<screen role="root"><userinput>make altinstall                                &amp;&amp;
     172ln -s python2.7        /usr/bin/python2        &amp;&amp;
     173ln -s python2.7-config /usr/bin/python2-config &amp;&amp;
    166174chmod -v 755 /usr/lib/libpython&python2-majorver;.so.1.0</userinput></screen>
    167175
     
    207215      <command>pip</command> and <command>setuptools</command> packaging programs.
    208216      <command>setuptools</command> is needed for building some Python modules.
     217      This switch is not recommended because this version of Python is being phased out.
    209218    </para>
    210219
     
    222231
    223232    <para>
     233      <command>make altinstall</command>: This make target omits some default
     234      symbolic links that may interfere with Python 3.
     235    </para>
     236
     237    <para>
    224238      <command>chmod ...</command>: Fix permissions for libraries to be
    225239      consistent with other libraries.
     
    251265      <seglistitem>
    252266        <seg>
    253           2to3, pip2, pydoc, python (symlink), python-config (symlink),
    254           python2 (symlink), python2-config (symlink),
    255           python&python2-majorver;, python&python2-majorver;-config,
    256           smtpd.py, and idle
     267          pydoc,
     268          python2 (symlink),
     269          python2-config (symlink),
     270          python&python2-majorver;,
     271          python&python2-majorver;-config,
     272          smtpd.py, and
     273          idle
    257274        </seg>
    258275        <seg>
     
    271288      <?dbhtml list-presentation="table"?>
    272289
    273       <varlistentry id="python2-2to3">
    274         <term><command>2to3</command></term>
    275         <listitem>
    276           <para>
    277             is a <application>Python</application> program that reads
    278             <application>Python 2.x</application> source code and applies a
    279             series of fixes to transform it into valid
    280             <application>Python 3.x</application> code.
    281           </para>
    282           <indexterm zone="python2 python2-2to3">
    283             <primary sortas="b-2to3">2to3</primary>
    284           </indexterm>
    285         </listitem>
    286       </varlistentry>
    287 
    288       <varlistentry id="pip2">
    289         <term><command>pip2</command></term>
    290         <listitem>
    291           <para>
    292             is the package manager for <application>Python 2.x</application>.
    293             It is used to automate management of
    294             <application>Python 2.x</application> modules.
    295           </para>
    296           <indexterm zone="python2 pip2">
    297             <primary sortas="b-pip2">pip2</primary>
    298           </indexterm>
    299         </listitem>
    300       </varlistentry>
    301 
    302290      <varlistentry id="idle">
    303291        <term><command>idle</command></term>
     
    328316
    329317      <varlistentry id="python">
    330         <term><command>python</command></term>
     318        <term><command>python2</command></term>
    331319        <listitem>
    332320          <para>
  • introduction/welcome/changelog.xml

    rcc852ff r61f684f2  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[bdubbs] - Fix python2's install procedures to omit
     49          unneeded files.</para>
     50        </listitem>
     51        <listitem>
    4852          <para>[renodr] - Update to mariadb-10.5.7 (Security Update). Fixes
    4953          <ulink url="&blfs-ticket-root;14210">#14210</ulink>.</para>
Note: See TracChangeset for help on using the changeset viewer.