[505c46cc] | 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 |
|
---|
[02790b1] | 7 | <!ENTITY six-download-http "&pymodules-dl;/s/six/six-&six-version;.tar.gz">
|
---|
[505c46cc] | 8 | <!ENTITY six-download-ftp " ">
|
---|
[54931831] | 9 | <!ENTITY six-md5sum "a7c927740e4964dd29b72cebfc1429bb">
|
---|
[d4e9085a] | 10 | <!ENTITY six-size "36 KB">
|
---|
[db7e804] | 11 | <!ENTITY six-buildsize "376 KB">
|
---|
[505c46cc] | 12 | <!ENTITY six-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin six -->
|
---|
| 16 | <sect2 id="six" xreflabel="six-&six-version;">
|
---|
| 17 |
|
---|
| 18 | <title>six-&six-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="six">
|
---|
| 21 | <primary sortas="a-six">six</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to Six Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
[d0c81354] | 28 | Six is a Python 2 to 3 compatibility library.
|
---|
[505c46cc] | 29 | </para>
|
---|
| 30 |
|
---|
[453910f] | 31 | &lfs111_checked;
|
---|
[505c46cc] | 32 | <!-- Does not use gcc -->
|
---|
| 33 |
|
---|
| 34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&six-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&six-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &six-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &six-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &six-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &six-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
[d0c81354] | 67 | <!--
|
---|
[505c46cc] | 68 | <bridgehead renderas="sect4">Six Dependencies</bridgehead>
|
---|
| 69 |
|
---|
[02790b1] | 70 | <bridgehead renderas="sect5">Recommended Dependencies</bridgehead>
|
---|
| 71 | <para role="recommended">
|
---|
[8558044] | 72 | <xref linkend="python2"/>
|
---|
[505c46cc] | 73 | </para>
|
---|
[d0c81354] | 74 | -->
|
---|
[505c46cc] | 75 | <para condition="html" role="usernotes">
|
---|
| 76 | User Notes: <ulink url="&blfs-wiki;/six"/>
|
---|
| 77 | </para>
|
---|
| 78 | </sect3>
|
---|
| 79 |
|
---|
| 80 | <sect3 role="installation">
|
---|
[d0c81354] | 81 | <title>Installation of Six</title>
|
---|
[3fca94e] | 82 | <!--
|
---|
[02790b1] | 83 | <note>
|
---|
| 84 | <para>
|
---|
| 85 | Both <application>Python 2</application> and
|
---|
| 86 | <application>Python 3</application> modules can
|
---|
| 87 | be built and installed without any conflicts.
|
---|
| 88 | </para>
|
---|
| 89 | </note>
|
---|
| 90 |
|
---|
[505c46cc] | 91 | <para>
|
---|
[77deb22e] | 92 | Install <application>six</application> for Python 2 and Python 3
|
---|
| 93 | by running the following commands:
|
---|
[505c46cc] | 94 | </para>
|
---|
| 95 |
|
---|
[77deb22e] | 96 | <screen><userinput>python2 setup.py build &&
|
---|
| 97 | python3 setup.py build</userinput></screen>
|
---|
[3fca94e] | 98 | -->
|
---|
| 99 | <para>
|
---|
| 100 | Build the module:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
---|
[505c46cc] | 104 |
|
---|
| 105 | <para>
|
---|
| 106 | This package does not come with a test suite.
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <para>
|
---|
| 110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
[3fca94e] | 112 | <!--
|
---|
| 113 | <screen role="root"><userinput>python2 setup.py install - -optimize=1 &&
|
---|
| 114 | python3 setup.py install - -optimize=1</userinput></screen>
|
---|
| 115 | -->
|
---|
[505c46cc] | 116 |
|
---|
[62dc76c] | 117 | <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir six</userinput></screen>
|
---|
[505c46cc] | 118 |
|
---|
| 119 | </sect3>
|
---|
| 120 |
|
---|
[3fca94e] | 121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 122 | href="../../xincludes/pip3-cmd-explain.xml"/>
|
---|
| 123 |
|
---|
[505c46cc] | 124 | <sect3 role="content">
|
---|
| 125 | <title>Contents</title>
|
---|
| 126 |
|
---|
| 127 | <segmentedlist>
|
---|
| 128 | <segtitle>Installed Programs</segtitle>
|
---|
[02790b1] | 129 | <segtitle>Installed Libraries</segtitle>
|
---|
[505c46cc] | 130 | <segtitle>Installed Directories</segtitle>
|
---|
| 131 |
|
---|
| 132 | <seglistitem>
|
---|
| 133 | <seg>
|
---|
| 134 | None
|
---|
| 135 | </seg>
|
---|
| 136 | <seg>
|
---|
[02790b1] | 137 | None
|
---|
[505c46cc] | 138 | </seg>
|
---|
| 139 | <seg>
|
---|
[b9a4450] | 140 | /usr/lib/python&python3-majorver;/site-packages/six-&six-version;.dist-info
|
---|
[505c46cc] | 141 | </seg>
|
---|
| 142 | </seglistitem>
|
---|
| 143 | </segmentedlist>
|
---|
| 144 | </sect3>
|
---|
[4c24eb0a] | 145 |
|
---|
[505c46cc] | 146 | </sect2>
|
---|