glfs/general/prog/mako.xml
Ken Moffat 0a43695c61 tags
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19788 af4574ff-66df-0310-9fd7-8a98e5e911e0
2018-02-17 23:35:13 +00:00

155 lines
4.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY Mako-download-http "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz">
<!ENTITY Mako-download-ftp " ">
<!ENTITY Mako-md5sum "c5fc31a323dd4990683d2f2da02d4e20">
<!ENTITY Mako-size "564 KB">
<!ENTITY Mako-buildsize "5.6 MB">
<!ENTITY Mako-time "less than 0.1 SBU">
]>
<!-- Begin Mako -->
<sect2 id="Mako" xreflabel="Mako-&mako-version;">
<title>Mako-&mako-version;</title>
<indexterm zone="Mako">
<primary sortas="a-Mako">Mako</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to Mako Module</title>
<para>
<application>Mako</application> is a <application>Python</application>
module that implements hyperfast and lightweight templating for the
<application>Python</application> platform.
</para>
&lfs82_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&Mako-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&Mako-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &Mako-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &Mako-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &Mako-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &Mako-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Mako Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="Beaker"/> and
<xref linkend="MarkupSafe"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/Mako"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of Mako</title>
<note>
<para>
Both <application>Python 2</application> and
<application>Python 3</application> modules can
be built and installed without any conflicts.
</para>
</note>
<!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
<para>
To install the <application>Python 2</application> module,
run the following command as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
<para>
To install the <application>Python 3</application> module,
run the following command as the
<systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>sed -i "s:mako-render:&amp;3:g" setup.py &amp;&amp;
python3 setup.py install --optimize=1</userinput></screen>
</sect3>
<sect3 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -i "s:mako-render:&amp;3:g" setup.py</command>: This sed
prevents <command>setup.py</command> from overwriting an already
installed script by the <application>Python 2</application> module.
Remove it if you are building this module only for
<application>Python 3</application>.
</para>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
mako-render and/or mako-render3
</seg>
<seg>
None
</seg>
<seg>
/usr/lib/python&python2-majorver;/site-packages/mako,
/usr/lib/python&python2-majorver;/site-packages/Mako-&mako-version;-py&python2-majorver;.egg-info and/or
/usr/lib/python&python3-majorver;/site-packages/mako,
/usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;-py&python3-majorver;.egg-info
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!--End Mako -->