[22f9c48] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[bc4bab58] | 7 | <!-- I don't like the way this URL is structured. -renodr -->
|
---|
[2d43544] | 8 | <!-- wget https://pypi.python.org/pypi/setuptools to find path for latest version -->
|
---|
[22f9c48] | 9 | <!ENTITY setuptools-download-http
|
---|
[d8f3c383] | 10 | "https://pypi.python.org/packages/f1/92/12c7251039b274c30106c3e0babdcb040cbd13c3ad4b3f0ef9a7c217e36a/setuptools-&setuptools-version;.tar.gz">
|
---|
[22f9c48] | 11 | <!ENTITY setuptools-download-ftp " ">
|
---|
[d8f3c383] | 12 | <!ENTITY setuptools-md5sum "7f2ba59682bc8c6ae6f1f927aca1a351">
|
---|
| 13 | <!ENTITY setuptools-size "636 KB">
|
---|
| 14 | <!ENTITY setuptools-buildsize "12 MB">
|
---|
[22f9c48] | 15 | <!ENTITY setuptools-time "less than 0.1 SBU">
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <!-- Begin Setuptools -->
|
---|
| 19 | <sect2 id="setuptools" xreflabel="Setuptools-&setuptools-version;" revision="systemd">
|
---|
| 20 |
|
---|
| 21 | <title>Setuptools-&setuptools-version;</title>
|
---|
| 22 |
|
---|
| 23 | <indexterm zone="setuptools">
|
---|
| 24 | <primary sortas="a-Setuptools">Setuptools</primary>
|
---|
| 25 | </indexterm>
|
---|
| 26 |
|
---|
| 27 | <sect3 role="package">
|
---|
| 28 | <title>Introduction to Setuptools Module</title>
|
---|
| 29 |
|
---|
| 30 | <para>
|
---|
| 31 | <application>Setuptools</application> is a <application>Python</application>
|
---|
| 32 | module that makes it easier to download, build, install, upgrade, and
|
---|
| 33 | uninstall <application>Python</application> packages.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[36de390] | 36 | &lfs7a_checked;
|
---|
| 37 |
|
---|
[22f9c48] | 38 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&setuptools-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&setuptools-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &setuptools-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &setuptools-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &setuptools-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &setuptools-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Setuptools Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
| 76 | <xref linkend="python2"/> and/or
|
---|
| 77 | <xref linkend="python3"/>
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <para condition="html" role="usernotes">
|
---|
| 81 | User Notes: <ulink url="&blfs-wiki;/setuptools"/>
|
---|
| 82 | </para>
|
---|
| 83 | </sect3>
|
---|
| 84 |
|
---|
| 85 | <sect3 role="installation">
|
---|
| 86 | <title>Installation of Setuptools</title>
|
---|
| 87 |
|
---|
| 88 | <note>
|
---|
| 89 | <para>
|
---|
| 90 | Both <application>Python 2</application> and
|
---|
| 91 | <application>Python 3</application> modules can
|
---|
| 92 | be built and installed without any conflicts.
|
---|
| 93 | </para>
|
---|
| 94 | </note>
|
---|
| 95 |
|
---|
[0797528] | 96 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
| 97 |
|
---|
[22f9c48] | 98 | <para>
|
---|
| 99 | To install the <application>Python 2</application> module,
|
---|
| 100 | run the following command as the
|
---|
| 101 | <systemitem class="username">root</systemitem> user:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | <para>
|
---|
| 107 | To install the <application>Python 3</application> module,
|
---|
| 108 | run the following command as the
|
---|
| 109 | <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
| 113 |
|
---|
| 114 | </sect3>
|
---|
| 115 |
|
---|
| 116 | <sect3 role="content">
|
---|
| 117 | <title>Contents</title>
|
---|
| 118 |
|
---|
| 119 | <segmentedlist>
|
---|
| 120 | <segtitle>Installed Programs</segtitle>
|
---|
| 121 | <segtitle>Installed Libraries</segtitle>
|
---|
| 122 | <segtitle>Installed Directories</segtitle>
|
---|
| 123 |
|
---|
| 124 | <seglistitem>
|
---|
| 125 | <seg>
|
---|
| 126 | easy_install, easy_install-&python2-majorver;, and easy_install-&python3-majorver;
|
---|
| 127 | </seg>
|
---|
| 128 | <seg>
|
---|
| 129 | None
|
---|
| 130 | </seg>
|
---|
| 131 | <seg>
|
---|
| 132 | /usr/lib/python&python2-majorver;/site-packages/setuptools,
|
---|
| 133 | /usr/lib/python&python2-majorver;/site-packages/setuptools-&setuptools-version;-py&python2-majorver;.egg-info and/or
|
---|
| 134 | /usr/lib/python&python3-majorver;/site-packages/setuptools,
|
---|
| 135 | /usr/lib/python&python3-majorver;/site-packages/setuptools-&setuptools-version;-py&python3-majorver;.egg-info
|
---|
| 136 | </seg>
|
---|
| 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
| 139 |
|
---|
| 140 | </sect3>
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 | <!--End Setuptools -->
|
---|