Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/mako.xml

    rcd9f166a r87ed9b1  
    77  <!ENTITY Mako-download-http "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz">
    88  <!ENTITY Mako-download-ftp  " ">
    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">
     9  <!ENTITY Mako-md5sum        "651f365616611fcd4f2702a9002e2195">
     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)">
    1313]>
    1414
     
    3131      </para>
    3232
    33       &lfs110a_checked;
     33      &lfs112_checked;
    3434
    3535      <bridgehead renderas="sect4">Package Information</bridgehead>
     
    6969      <bridgehead renderas="sect4">Mako Dependencies</bridgehead>
    7070
    71       <bridgehead renderas="sect5">Required</bridgehead>
    72       <para role="required">
    73 <!--        <xref linkend="Beaker"/> and -->
     71      <bridgehead renderas="sect5" revision="sysv">Required</bridgehead>
     72      <para role="required" revision="sysv">
    7473        <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>
    7579      </para>
    7680
     
    8286    <sect3 role="installation">
    8387      <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 <!--
     88
    9589      <para>
    96         To install the <application>Python 2</application> module,
    97         run the following command as the
    98         <systemitem class="username">root</systemitem> user:
     90        Build the module:
    9991      </para>
    10092
    101 <screen role="root"><userinput>python2 setup.py install - -optimize=1</userinput></screen>
    102 -->
     93<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     94
    10395      <para>
    104         To install the <application>Python 3</application> module,
    105         run the following command as the
    106         <systemitem class="username">root</systemitem> user:
     96        Install the module as the &root; user:
    10797      </para>
    10898
    109 <!--sed -i "s:mako-render:&amp;3:g" setup.py &amp;&amp;-->
    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>
     99<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Mako</userinput></screen>
    115100
    116       <para>
    117         <command>sed -i "s:mako-render:&amp;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>.
    122       </para>
     101    <para>
     102      To test the installation, issue <command>pytest</command>.
     103    </para>
    123104
    124105    </sect3>
    125 -->
     106
     107    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     108      href="../../xincludes/pip3-cmd-explain.xml"/>
     109
    126110    <sect3 role="content">
    127111      <title>Contents</title>
     
    140124          </seg>
    141125          <seg>
    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. -->
     126            /usr/lib/python&python3-majorver;/site-packages/mako and
     127            /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist-info
    148128          </seg>
    149129        </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.