source: general/prog/mako.xml@ 879932f

10.0 10.1 11.0 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 879932f was 879932f, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Archive setuptools
Modify Python instructions to add setuptools and pip as part of the installation
Tags for the Python section + a few others

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

  • Property mode set to 100644
File size: 4.6 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 "c5fc31a323dd4990683d2f2da02d4e20">
11 <!ENTITY Mako-size "564 KB">
12 <!ENTITY Mako-buildsize "5.6 MB">
13 <!ENTITY Mako-time "less than 0.1 SBU">
14]>
15
16 <!-- Begin Mako -->
17 <sect2 id="Mako" xreflabel="Mako-&mako-version;" revision="systemd">
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 &lfs80_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<!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
95
96 <para>
97 To install the <application>Python 2</application> module,
98 run the following command as the
99 <systemitem class="username">root</systemitem> user:
100 </para>
101
102<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
103
104 <para>
105 To install the <application>Python 3</application> module,
106 run the following command as the
107 <systemitem class="username">root</systemitem> user:
108 </para>
109
110<screen role="root"><userinput>sed -i "s:mako-render:&amp;3:g" setup.py &amp;&amp;
111python3 setup.py install --optimize=1</userinput></screen>
112
113 </sect3>
114
115 <sect3 role="commands">
116 <title>Command Explanations</title>
117
118 <para>
119 <command>sed -i "s:mako-render:&amp;3:g" setup.py</command>: This sed
120 prevents <command>setup.py</command> from overwriting an already
121 installed script by the <application>Python 2</application> module.
122 Remove it if you are building this module only for
123 <application>Python 3</application>.
124 </para>
125
126 </sect3>
127
128 <sect3 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Programs</segtitle>
133 <segtitle>Installed Libraries</segtitle>
134 <segtitle>Installed Directories</segtitle>
135
136 <seglistitem>
137 <seg>
138 mako-render and/or mako-render3
139 </seg>
140 <seg>
141 None
142 </seg>
143 <seg>
144 /usr/lib/python&python2-majorver;/site-packages/mako,
145 /usr/lib/python&python2-majorver;/site-packages/Mako-&mako-version;-py&python2-majorver;.egg-info and/or
146 /usr/lib/python&python3-majorver;/site-packages/mako,
147 /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;-py&python3-majorver;.egg-info
148 </seg>
149 </seglistitem>
150 </segmentedlist>
151
152 </sect3>
153
154 </sect2>
155 <!--End Mako -->
Note: See TracBrowser for help on using the repository browser.