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 |
|
---|
7 | <!ENTITY setuptools-download-http
|
---|
8 | "https://pypi.python.org/packages/source/s/setuptools/setuptools-&setuptools-version;.tar.gz">
|
---|
9 | <!ENTITY setuptools-download-ftp " ">
|
---|
10 | <!ENTITY setuptools-md5sum "95ed0bcef8a41302d6dd8f7562258679">
|
---|
11 | <!ENTITY setuptools-size "996 KB">
|
---|
12 | <!ENTITY setuptools-buildsize "9.8 MB">
|
---|
13 | <!ENTITY setuptools-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <!-- Begin Setuptools -->
|
---|
17 | <sect2 id="setuptools" xreflabel="Setuptools-&setuptools-version;">
|
---|
18 |
|
---|
19 | <title>Setuptools-&setuptools-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="setuptools">
|
---|
22 | <primary sortas="a-Setuptools">Setuptools</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect3 role="package">
|
---|
26 | <title>Introduction to Setuptools Module</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>Setuptools</application> is a <application>Python</application>
|
---|
30 | module that makes it easier to download, build, install, upgrade, and
|
---|
31 | uninstall <application>Python</application> packages.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs75_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&setuptools-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&setuptools-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &setuptools-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &setuptools-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &setuptools-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &setuptools-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Setuptools Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="python2"/> and/or
|
---|
75 | <xref linkend="python3"/>
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | <para condition="html" role="usernotes">
|
---|
79 | User Notes: <ulink url="&blfs-wiki;/setuptools"/>
|
---|
80 | </para>
|
---|
81 | </sect3>
|
---|
82 |
|
---|
83 | <sect3 role="installation">
|
---|
84 | <title>Installation of Setuptools</title>
|
---|
85 |
|
---|
86 | <note>
|
---|
87 | <para>
|
---|
88 | Both <application>Python 2</application> and
|
---|
89 | <application>Python 3</application> modules can
|
---|
90 | be built and installed without any conflicts.
|
---|
91 | </para>
|
---|
92 | </note>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | To install the <application>Python 2</application> module,
|
---|
96 | run the following command as the
|
---|
97 | <systemitem class="username">root</systemitem> user:
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | To install the <application>Python 3</application> module,
|
---|
104 | run the following command as the
|
---|
105 | <systemitem class="username">root</systemitem> user:
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
109 |
|
---|
110 | </sect3>
|
---|
111 |
|
---|
112 | <sect3 role="content">
|
---|
113 | <title>Contents</title>
|
---|
114 |
|
---|
115 | <segmentedlist>
|
---|
116 | <segtitle>Installed Programs</segtitle>
|
---|
117 | <segtitle>Installed Directories</segtitle>
|
---|
118 |
|
---|
119 | <seglistitem>
|
---|
120 | <seg>
|
---|
121 | easy_install, easy_install-&python2-majorver;, and easy_install-&python3-majorver;
|
---|
122 | </seg>
|
---|
123 | <seg>
|
---|
124 | /usr/lib/python&python2-majorver;/site-packages/_markerlib,
|
---|
125 | /usr/lib/python&python2-majorver;/site-packages/setuptools,
|
---|
126 | /usr/lib/python&python2-majorver;/site-packages/setuptools-&setuptools-version;-py&python2-majorver;.egg-info and/or
|
---|
127 | /usr/lib/python&python3-majorver;/site-packages/_markerlib,
|
---|
128 | /usr/lib/python&python3-majorver;/site-packages/setuptools,
|
---|
129 | /usr/lib/python&python3-majorver;/site-packages/setuptools-&setuptools-version;-py&python3-majorver;.egg-info
|
---|
130 | </seg>
|
---|
131 | </seglistitem>
|
---|
132 | </segmentedlist>
|
---|
133 |
|
---|
134 | </sect3>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 | <!--End Setuptools -->
|
---|