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 Mako-download-http
|
---|
8 | "https://pypi.python.org/packages/source/M/Mako/Mako-&Mako-version;.tar.gz">
|
---|
9 | <!ENTITY Mako-download-ftp " ">
|
---|
10 | <!ENTITY Mako-md5sum "9f0aafd177b039ef67b90ea350497a54">
|
---|
11 | <!ENTITY Mako-size "47 KB">
|
---|
12 | <!ENTITY Mako-buildsize "464 KB">
|
---|
13 | <!ENTITY Mako-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <!-- Begin Mako -->
|
---|
17 | <sect2 id="Mako" xreflabel="Mako-&Mako-version;">
|
---|
18 |
|
---|
19 | <title>Mako-&Mako-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="Mako">
|
---|
22 | <primary sortas="a-Mako">Mako</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect3 role="package">
|
---|
26 | <title>Introduction to Mako Module</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>Mako</application> is a <application>Python</application>
|
---|
30 | module that implements hyperfast and lightweight templating for the
|
---|
31 | <application>Python</application> platform.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs77_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&Mako-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&Mako-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &Mako-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &Mako-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &Mako-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &Mako-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Mako Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="Beaker"/> and
|
---|
75 | <xref linkend="MarkupSafe"/>
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | <para condition="html" role="usernotes">
|
---|
79 | User Notes: <ulink url="&blfs-wiki;/Mako"/>
|
---|
80 | </para>
|
---|
81 | </sect3>
|
---|
82 |
|
---|
83 | <sect3 role="installation">
|
---|
84 | <title>Installation of Mako</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>sed -i "s:mako-render:&3:g" setup.py &&
|
---|
109 | python3 setup.py install --optimize=1</userinput></screen>
|
---|
110 |
|
---|
111 | </sect3>
|
---|
112 |
|
---|
113 | <sect3 role="commands">
|
---|
114 | <title>Command Explanations</title>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | <command>sed -i "s:mako-render:&3:g" setup.py</command>: This sed
|
---|
118 | prevents <command>setup.py</command> from overwriting an already
|
---|
119 | installed script by the <application>Python 2</application> module.
|
---|
120 | Remove it if you are building this module only for
|
---|
121 | <application>Python 3</application>.
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | </sect3>
|
---|
125 |
|
---|
126 | <sect3 role="content">
|
---|
127 | <title>Contents</title>
|
---|
128 |
|
---|
129 | <segmentedlist>
|
---|
130 | <segtitle>Installed Programs</segtitle>
|
---|
131 | <segtitle>Installed Libraries</segtitle>
|
---|
132 | <segtitle>Installed Directories</segtitle>
|
---|
133 |
|
---|
134 | <seglistitem>
|
---|
135 | <seg>
|
---|
136 | mako-render and/or mako-render3
|
---|
137 | </seg>
|
---|
138 | <seg>
|
---|
139 | None
|
---|
140 | </seg>
|
---|
141 | <seg>
|
---|
142 | /usr/lib/python&python2-majorver;/site-packages/mako,
|
---|
143 | /usr/lib/python&python2-majorver;/site-packages/Mako-&Mako-version;-py&python2-majorver;.egg-info and/or
|
---|
144 | /usr/lib/python&python3-majorver;/site-packages/mako,
|
---|
145 | /usr/lib/python&python3-majorver;/site-packages/Mako-&Mako-version;-py&python3-majorver;.egg-info
|
---|
146 | </seg>
|
---|
147 | </seglistitem>
|
---|
148 | </segmentedlist>
|
---|
149 |
|
---|
150 | </sect3>
|
---|
151 |
|
---|
152 | </sect2>
|
---|
153 | <!--End Mako -->
|
---|