Changes in general/prog/mako.xml [87ed9b1:cd9f166a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/mako.xml
r87ed9b1 rcd9f166a 7 7 <!ENTITY Mako-download-http "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz"> 8 8 <!ENTITY Mako-download-ftp " "> 9 <!ENTITY Mako-md5sum "6 51f365616611fcd4f2702a9002e2195">10 <!ENTITY Mako-size "48 5KB">11 <!ENTITY Mako-buildsize "3. 9 MB (add 1.2 MB for tests)">12 <!ENTITY Mako-time "less than 0.1 SBU (with tests)">9 <!ENTITY Mako-md5sum "6d7ccbc372ec6d87113f34d9e8fc65d1"> 10 <!ENTITY Mako-size "484 KB"> 11 <!ENTITY Mako-buildsize "3.2 MB"> 12 <!ENTITY Mako-time "less than 0.1 SBU"> 13 13 ]> 14 14 … … 31 31 </para> 32 32 33 &lfs11 2_checked;33 &lfs110a_checked; 34 34 35 35 <bridgehead renderas="sect4">Package Information</bridgehead> … … 69 69 <bridgehead renderas="sect4">Mako Dependencies</bridgehead> 70 70 71 <bridgehead renderas="sect5" revision="sysv">Required</bridgehead> 72 <para role="required" revision="sysv"> 71 <bridgehead renderas="sect5">Required</bridgehead> 72 <para role="required"> 73 <!-- <xref linkend="Beaker"/> and --> 73 74 <xref linkend="MarkupSafe"/> 74 </para>75 76 <bridgehead renderas="sect5">Optional (for Testing)</bridgehead>77 <para role="optional">78 <ulink url="https://pypi.org/project/pytest/">pytest</ulink>79 75 </para> 80 76 … … 86 82 <sect3 role="installation"> 87 83 <title>Installation of Mako</title> 84 <!-- 85 <note> 86 <para> 87 Both <application>Python 2</application> and 88 <application>Python 3</application> modules can 89 be built and installed without any conflicts. 90 </para> 91 </note> 92 --> 93 <!-- Editors note: Use - -root= instead of DESTDIR= when updating. --> 94 <!-- 95 <para> 96 To install the <application>Python 2</application> module, 97 run the following command as the 98 <systemitem class="username">root</systemitem> user: 99 </para> 100 101 <screen role="root"><userinput>python2 setup.py install - -optimize=1</userinput></screen> 102 --> 103 <para> 104 To install the <application>Python 3</application> module, 105 run the following command as the 106 <systemitem class="username">root</systemitem> user: 107 </para> 108 109 <!--sed -i "s:mako-render:&3:g" setup.py &&--> 110 <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen> 111 </sect3> 112 <!-- 113 <sect3 role="commands"> 114 <title>Command Explanations</title> 88 115 89 116 <para> 90 Build the module: 117 <command>sed -i "s:mako-render:&3:g" setup.py</command>: This sed 118 prevents <command>setup.py</command> from overwriting an already 119 installed script by the <application>Python 2</application> module. 120 Remove it if you are building this module only for 121 <application>Python 3</application>. 91 122 </para> 92 123 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 124 </sect3> 106 107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 108 href="../../xincludes/pip3-cmd-explain.xml"/> 109 125 --> 110 126 <sect3 role="content"> 111 127 <title>Contents</title> … … 124 140 </seg> 125 141 <seg> 126 /usr/lib/python&python3-majorver;/site-packages/mako and 127 /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist-info 142 <!-- /usr/lib/python&python2-majorver;/site-packages/mako, 143 /usr/lib/python&python2-majorver;/site-packages/Mako-&mako-version;-py&python2-majorver;.egg-info and/or--> 144 /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;-py&python3-majorver;.egg 145 <!-- This is different when doing a -\-root install and a direct install. 146 In the latter case, there is only a .egg directory, and no mako 147 directory. --> 128 148 </seg> 129 149 </seglistitem>
Note:
See TracChangeset
for help on using the changeset viewer.