source: general/prog/python-modules/mako.xml@ 569925c7

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 569925c7 was 569925c7, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Update python modules for pythonhosted

Move the pythonhoted page to python_modules even though it is not
yet activated to render in the book.

Change location of pythonhosted md5sum ENTITIES to packages.ent
so they can be used in multiple pages but only need to be updated
in one place.

Note that pages not have entries like:

<!ENTITY asciidoc-md5sum "&asciidoc-md5sum;">

so this seems to be redefinig the entity to the version
in packages.ent. This seems to be OK with the build system.

  • Property mode set to 100644
File size: 4.3 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 "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz">
8 <!ENTITY Mako-download-ftp " ">
9 <!ENTITY Mako-md5sum "&mako-md5sum;">
10 <!ENTITY Mako-size "485 KB">
11 <!ENTITY Mako-buildsize "3.9 MB (add 1.2 MB for tests)">
12 <!ENTITY Mako-time "less than 0.1 SBU (with tests)">
13]>
14
15 <!-- Begin Mako -->
16 <sect2 id="Mako" xreflabel="Mako-&mako-version;">
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
33 &lfs112_checked;
34
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" revision="sysv">Required</bridgehead>
72 <para role="required" revision="sysv">
73 <xref linkend="MarkupSafe"/>
74 </para>
75
76 <bridgehead renderas="sect5">Optional (for Testing)</bridgehead>
77 <para role="optional">
78 <xref linkend="pytest"/>
79 </para>
80
81 <para condition="html" role="usernotes">
82 User Notes: <ulink url="&blfs-wiki;/Mako"/>
83 </para>
84 </sect3>
85
86 <sect3 role="installation">
87 <title>Installation of Mako</title>
88
89 <para>
90 Build the module:
91 </para>
92
93<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
94
95 <para>
96 Install the module as the &root; user:
97 </para>
98
99<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Mako</userinput></screen>
100
101 <para>
102 To test the installation, issue <command>pytest</command>.
103 </para>
104
105 </sect3>
106
107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
108 href="../../../xincludes/pip3-cmd-explain.xml"/>
109
110 <sect3 role="content">
111 <title>Contents</title>
112
113 <segmentedlist>
114 <segtitle>Installed Programs</segtitle>
115 <segtitle>Installed Libraries</segtitle>
116 <segtitle>Installed Directories</segtitle>
117
118 <seglistitem>
119 <seg>
120 mako-render
121 </seg>
122 <seg>
123 None
124 </seg>
125 <seg>
126 /usr/lib/python&python3-majorver;/site-packages/mako and
127 /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist-info
128 </seg>
129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="mako-render">
138 <term><command>mako-render</command></term>
139 <listitem>
140 <para>
141 renders a template
142 </para>
143 <indexterm zone="Mako mako-render">
144 <primary sortas="b-mako-render">mako-render</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 </variablelist>
150
151 </sect3>
152
153 </sect2>
Note: See TracBrowser for help on using the repository browser.