mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
Fix python2's install procedures to omit
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23870 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
cc852ff066
commit
61f684f2ee
@ -127,19 +127,26 @@
|
|||||||
|
|
||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Python 2</title>
|
<title>Installation of Python 2</title>
|
||||||
|
<!--
|
||||||
<caution>
|
<caution>
|
||||||
<para>
|
<para>
|
||||||
After installing this package or
|
After installing this package or
|
||||||
updating <application>pip2</application> with the command
|
updating <application>pip2</application> with the command
|
||||||
<command>pip2 install --upgrade pip</command>, it will remove
|
<command>pip2 install - -upgrade pip</command>, it will remove
|
||||||
<application>pip3</application> installed in LFS. To reset
|
<application>pip3</application> installed in LFS. To reset
|
||||||
<application>pip</application> and <application>pip3</application>,
|
<application>pip</application> and <application>pip3</application>,
|
||||||
run, as the <systemitem class="username">root</systemitem> user:
|
run, as the <systemitem class="username">root</systemitem> user:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>python3 -m pip install --force pip</userinput></screen>
|
<screen role="nodump"><userinput>python3 -m pip install - -force pip</userinput></screen>
|
||||||
</caution>
|
</caution>
|
||||||
|
-->
|
||||||
|
<para>
|
||||||
|
First, disable the installation of a script that overwrites a more
|
||||||
|
recent script:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen><userinput>sed -i '/2to3/d' ./setup.py</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Install <application>Python 2</application> by running the following
|
Install <application>Python 2</application> by running the following
|
||||||
@ -150,7 +157,6 @@
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--with-system-expat \
|
--with-system-expat \
|
||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--with-ensurepip=yes \
|
|
||||||
--enable-unicode=ucs4 &&
|
--enable-unicode=ucs4 &&
|
||||||
make</userinput></screen>
|
make</userinput></screen>
|
||||||
|
|
||||||
@ -162,7 +168,9 @@ make</userinput></screen>
|
|||||||
Now, as the <systemitem class="username">root</systemitem> user:
|
Now, as the <systemitem class="username">root</systemitem> user:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>make install &&
|
<screen role="root"><userinput>make altinstall &&
|
||||||
|
ln -s python2.7 /usr/bin/python2 &&
|
||||||
|
ln -s python2.7-config /usr/bin/python2-config &&
|
||||||
chmod -v 755 /usr/lib/libpython&python2-majorver;.so.1.0</userinput></screen>
|
chmod -v 755 /usr/lib/libpython&python2-majorver;.so.1.0</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -206,6 +214,7 @@ find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</use
|
|||||||
<parameter>--with-ensurepip=yes</parameter> : This switch enables building
|
<parameter>--with-ensurepip=yes</parameter> : This switch enables building
|
||||||
<command>pip</command> and <command>setuptools</command> packaging programs.
|
<command>pip</command> and <command>setuptools</command> packaging programs.
|
||||||
<command>setuptools</command> is needed for building some Python modules.
|
<command>setuptools</command> is needed for building some Python modules.
|
||||||
|
This switch is not recommended because this version of Python is being phased out.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -220,6 +229,11 @@ find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</use
|
|||||||
<application>GDBM</application>.
|
<application>GDBM</application>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<command>make altinstall</command>: This make target omits some default
|
||||||
|
symbolic links that may interfere with Python 3.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<command>chmod ...</command>: Fix permissions for libraries to be
|
<command>chmod ...</command>: Fix permissions for libraries to be
|
||||||
consistent with other libraries.
|
consistent with other libraries.
|
||||||
@ -250,10 +264,13 @@ find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</use
|
|||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>
|
<seg>
|
||||||
2to3, pip2, pydoc, python (symlink), python-config (symlink),
|
pydoc,
|
||||||
python2 (symlink), python2-config (symlink),
|
python2 (symlink),
|
||||||
python&python2-majorver;, python&python2-majorver;-config,
|
python2-config (symlink),
|
||||||
smtpd.py, and idle
|
python&python2-majorver;,
|
||||||
|
python&python2-majorver;-config,
|
||||||
|
smtpd.py, and
|
||||||
|
idle
|
||||||
</seg>
|
</seg>
|
||||||
<seg>
|
<seg>
|
||||||
libpython&python2-majorver;.so
|
libpython&python2-majorver;.so
|
||||||
@ -270,35 +287,6 @@ find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</use
|
|||||||
<?dbfo list-presentation="list"?>
|
<?dbfo list-presentation="list"?>
|
||||||
<?dbhtml list-presentation="table"?>
|
<?dbhtml list-presentation="table"?>
|
||||||
|
|
||||||
<varlistentry id="python2-2to3">
|
|
||||||
<term><command>2to3</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
is a <application>Python</application> program that reads
|
|
||||||
<application>Python 2.x</application> source code and applies a
|
|
||||||
series of fixes to transform it into valid
|
|
||||||
<application>Python 3.x</application> code.
|
|
||||||
</para>
|
|
||||||
<indexterm zone="python2 python2-2to3">
|
|
||||||
<primary sortas="b-2to3">2to3</primary>
|
|
||||||
</indexterm>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry id="pip2">
|
|
||||||
<term><command>pip2</command></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
is the package manager for <application>Python 2.x</application>.
|
|
||||||
It is used to automate management of
|
|
||||||
<application>Python 2.x</application> modules.
|
|
||||||
</para>
|
|
||||||
<indexterm zone="python2 pip2">
|
|
||||||
<primary sortas="b-pip2">pip2</primary>
|
|
||||||
</indexterm>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry id="idle">
|
<varlistentry id="idle">
|
||||||
<term><command>idle</command></term>
|
<term><command>idle</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -327,7 +315,7 @@ find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</use
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="python">
|
<varlistentry id="python">
|
||||||
<term><command>python</command></term>
|
<term><command>python2</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
is an interpreted, interactive, object-oriented programming
|
is an interpreted, interactive, object-oriented programming
|
||||||
|
@ -44,6 +44,10 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>November 4th, 2020</para>
|
<para>November 4th, 2020</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Fix python2's install procedures to omit
|
||||||
|
unneeded files.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[renodr] - Update to mariadb-10.5.7 (Security Update). Fixes
|
<para>[renodr] - Update to mariadb-10.5.7 (Security Update). Fixes
|
||||||
<ulink url="&blfs-ticket-root;14210">#14210</ulink>.</para>
|
<ulink url="&blfs-ticket-root;14210">#14210</ulink>.</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user