glfs/general/prog/setuptools.xml
DJ Lucas 22f9c48c02 [Systemd merge] - genlib and python-modules
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17451 af4574ff-66df-0310-9fd7-8a98e5e911e0
2016-06-06 03:35:53 +00:00

140 lines
4.5 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;
<!ENTITY setuptools-download-http
"https://pypi.python.org/packages/source/s/setuptools/setuptools-&setuptools-version;.tar.gz">
<!ENTITY setuptools-download-ftp " ">
<!ENTITY setuptools-md5sum "7edec6cc30aca5518fa9bad42ff0179b">
<!ENTITY setuptools-size "616 KB">
<!ENTITY setuptools-buildsize "8.6 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>
<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>
<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/_markerlib,
/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/_markerlib,
/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 -->