glfs/archive/setuptools-again.xml
Douglas R. Reno 879932f1ad Archive setuptools
Modify Python instructions to add setuptools and pip as part of the installation
Tags for the Python section + a few others

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18316 af4574ff-66df-0310-9fd7-8a98e5e911e0
2017-02-16 00:04:09 +00:00

144 lines
4.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!-- I don't like the way this URL is structured. -renodr -->
<!-- wget https://pypi.python.org/pypi/setuptools to find path for latest version -->
<!ENTITY setuptools-download-http
"https://pypi.python.org/packages/f1/92/12c7251039b274c30106c3e0babdcb040cbd13c3ad4b3f0ef9a7c217e36a/setuptools-&setuptools-version;.tar.gz">
<!ENTITY setuptools-download-ftp " ">
<!ENTITY setuptools-md5sum "7f2ba59682bc8c6ae6f1f927aca1a351">
<!ENTITY setuptools-size "636 KB">
<!ENTITY setuptools-buildsize "12 MB">
<!ENTITY setuptools-time "less than 0.1 SBU">
]>
<!-- Begin Setuptools -->
<sect2 id="setuptools" xreflabel="Setuptools-&setuptools-version;" revision="systemd">
<title>Setuptools-&setuptools-version;</title>
<indexterm zone="setuptools">
<primary sortas="a-Setuptools">Setuptools</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to Setuptools Module</title>
<para>
<application>Setuptools</application> is a <application>Python</application>
module that makes it easier to download, build, install, upgrade, and
uninstall <application>Python</application> packages.
</para>
&lfs7a_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&setuptools-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&setuptools-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &setuptools-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &setuptools-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &setuptools-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &setuptools-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Setuptools Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="python2"/> and/or
<xref linkend="python3"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/setuptools"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of Setuptools</title>
<note>
<para>
Both <application>Python 2</application> and
<application>Python 3</application> modules can
be built and installed without any conflicts.
</para>
</note>
<!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
<para>
To install the <application>Python 2</application> module,
run the following command as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
<para>
To install the <application>Python 3</application> module,
run the following command as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
easy_install, easy_install-&python2-majorver;, and easy_install-&python3-majorver;
</seg>
<seg>
None
</seg>
<seg>
/usr/lib/python&python2-majorver;/site-packages/setuptools,
/usr/lib/python&python2-majorver;/site-packages/setuptools-&setuptools-version;-py&python2-majorver;.egg-info and/or
/usr/lib/python&python3-majorver;/site-packages/setuptools,
/usr/lib/python&python3-majorver;/site-packages/setuptools-&setuptools-version;-py&python3-majorver;.egg-info
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!--End Setuptools -->