[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY Mako-download-http "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz">
|
---|
[22f9c48] | 8 | <!ENTITY Mako-download-ftp " ">
|
---|
[56f1076] | 9 | <!ENTITY Mako-md5sum "5836cc997b1b773ef389bf6629c30e65">
|
---|
| 10 | <!ENTITY Mako-size "552 KB">
|
---|
| 11 | <!ENTITY Mako-buildsize "3.6 MB">
|
---|
[22f9c48] | 12 | <!ENTITY Mako-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin Mako -->
|
---|
[0499056] | 16 | <sect2 id="Mako" xreflabel="Mako-&mako-version;">
|
---|
[22f9c48] | 17 |
|
---|
| 18 | <title>Mako-&mako-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="Mako">
|
---|
| 21 | <primary sortas="a-Mako">Mako</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to Mako Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>Mako</application> is a <application>Python</application>
|
---|
| 29 | module that implements hyperfast and lightweight templating for the
|
---|
| 30 | <application>Python</application> platform.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[796bc663] | 33 | &lfs83_checked;
|
---|
[36de390] | 34 |
|
---|
[22f9c48] | 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&Mako-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&Mako-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &Mako-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &Mako-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &Mako-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &Mako-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">Mako Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
[6b551e8] | 73 | <!-- <xref linkend="Beaker"/> and -->
|
---|
[22f9c48] | 74 | <xref linkend="MarkupSafe"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">
|
---|
| 78 | User Notes: <ulink url="&blfs-wiki;/Mako"/>
|
---|
| 79 | </para>
|
---|
| 80 | </sect3>
|
---|
| 81 |
|
---|
| 82 | <sect3 role="installation">
|
---|
| 83 | <title>Installation of Mako</title>
|
---|
[6b551e8] | 84 | <!--
|
---|
[22f9c48] | 85 | <note>
|
---|
| 86 | <para>
|
---|
| 87 | Both <application>Python 2</application> and
|
---|
| 88 | <application>Python 3</application> modules can
|
---|
| 89 | be built and installed without any conflicts.
|
---|
| 90 | </para>
|
---|
| 91 | </note>
|
---|
[6b551e8] | 92 | -->
|
---|
[0797528] | 93 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
[6b551e8] | 94 | <!--
|
---|
[22f9c48] | 95 | <para>
|
---|
| 96 | To install the <application>Python 2</application> module,
|
---|
| 97 | run the following command as the
|
---|
| 98 | <systemitem class="username">root</systemitem> user:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
[6b551e8] | 101 | <screen role="root"><userinput>python setup.py install - -optimize=1</userinput></screen>
|
---|
| 102 | -->
|
---|
[22f9c48] | 103 | <para>
|
---|
| 104 | To install the <application>Python 3</application> module,
|
---|
| 105 | run the following command as the
|
---|
| 106 | <systemitem class="username">root</systemitem> user:
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
[6b551e8] | 109 | <!--sed -i "s:mako-render:&3:g" setup.py &&-->
|
---|
| 110 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
[22f9c48] | 111 | </sect3>
|
---|
[6b551e8] | 112 | <!--
|
---|
[22f9c48] | 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>
|
---|
[6b551e8] | 125 | -->
|
---|
[22f9c48] | 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>
|
---|
[6b551e8] | 136 | <!--mako-render and/or--> mako-render3
|
---|
[22f9c48] | 137 | </seg>
|
---|
| 138 | <seg>
|
---|
| 139 | None
|
---|
| 140 | </seg>
|
---|
| 141 | <seg>
|
---|
[6b551e8] | 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 and
|
---|
[22f9c48] | 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 -->
|
---|