mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
6b063cc376
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24250 af4574ff-66df-0310-9fd7-8a98e5e911e0
155 lines
4.7 KiB
XML
155 lines
4.7 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 "2cd02c14d08c2180b3e10d3c2e749b9e">
|
|
<!ENTITY Mako-size "469 KB">
|
|
<!ENTITY Mako-buildsize "3.8 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>
|
|
|
|
&lfs101_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>python2 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>
|
|
|
|
<!--sed -i "s:mako-render:&3:g" setup.py &&-->
|
|
<screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
|
</sect3>
|
|
<!--
|
|
<sect3 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed -i "s:mako-render:&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
|
|
</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-&mako-version;-py&python3-majorver;.egg
|
|
<!-- This is different when doing a -\-root install and a direct install.
|
|
In the latter case, there is only a .egg directory, and no mako
|
|
directory. -->
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|