source: archive/mako.xml@ 90cb5d6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 90cb5d6 was b92661e, checked in by Ken Moffat <ken@…>, 9 years ago

Archive Mako and Setuptools.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15859 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.0 KB
Line 
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 "462 KB">
12 <!ENTITY mako-buildsize "4.9 MB">
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 Mako is a template library written in <application>Python
30 </application>. It provides a familiar, non-XML syntax which compiles
31 into Python modules for maximum performance.
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="setuptools"/> and
75 <xref linkend="python2"/> or <xref linkend="python3"/>
76 </para>
77
78 <bridgehead renderas="sect5">Optional</bridgehead>
79 <para role="optional">
80 <ulink url="http://www.voidspace.org.uk/python/mock">mock</ulink>
81 </para>
82
83 <para condition="html" role="usernotes">
84 User Notes: <ulink url="&blfs-wiki;/mako"/>
85 </para>
86 </sect3>
87
88 <sect3 role="installation">
89 <title>Installation of Mako</title>
90
91 <note>
92 <para>
93 Both <application>Python 2</application> and
94 <application>Python 3</application> modules can
95 be built and installed without any conflicts.
96 </para>
97 </note>
98
99 <para>
100 To install <application>Mako</application> for <application>Python
101 2</application>, run the following command as the <systemitem
102 class="username">root</systemitem> user:
103 </para>
104
105<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
106
107 <para>
108 To install <application>Mako</application> for <application>Python
109 3</application>, run the following command as the <systemitem
110 class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>sed -i "s:mako-render:&amp;3:g" setup.py &amp;&amp;
114python3 setup.py install --optimize=1</userinput></screen>
115
116 <para>
117 The test suite requires the optional <application>mock</application>
118 python module. If it is not installed and you have internet access, it
119 will be automatically downloaded before the tests. Run the tests by
120 issuing <command>python setup.py test</command> and/or <command>python3
121 setup.py test</command>.
122 </para>
123
124
125 </sect3>
126
127 <sect3 role="commands">
128 <title>Command Explanations</title>
129
130 <para>
131 <command>sed -i "s:mako-render:&amp;3:g" setup.py</command>: This sed
132 prevents <command>setup.py</command> from overwriting an already
133 installed script by the <application>Python 2</application> module.
134 Remove it if you are building this module only for
135 <application>Python 3</application>.
136 </para>
137
138 </sect3>
139
140 <sect3 role="content">
141 <title>Contents</title>
142
143 <segmentedlist>
144 <segtitle>Installed Programs</segtitle>
145 <segtitle>Installed Library</segtitle>
146 <segtitle>Installed Directory</segtitle>
147
148 <seglistitem>
149 <seg>
150 None
151 </seg>
152 <seg>
153 None
154 </seg>
155 <seg>
156 /usr/lib/python&python2-majorver;/site-packages/Mako-&mako-version;-py&python2-majorver;.egg and/or
157 /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;-py&python3-majorver;.egg
158 </seg>
159 </seglistitem>
160 </segmentedlist>
161 </sect3>
162 </sect2>
163 <!-- End Mako -->
Note: See TracBrowser for help on using the repository browser.