Changeset 698c3986


Ignore:
Timestamp:
04/21/2022 12:41:53 AM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
e7d47128
Parents:
82b6f40
Message:

Update Mako install instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/mako.xml

    r82b6f40 r698c3986  
    7171      <bridgehead renderas="sect5" revision="sysv">Required</bridgehead>
    7272      <para role="required" revision="sysv">
    73 <!--        <xref linkend="Beaker"/> and -->
    7473        <xref linkend="MarkupSafe"/>
    7574      </para>
     
    8281    <sect3 role="installation">
    8382      <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 <!--
     83
    9584      <para>
    96         To install the <application>Python 2</application> module,
    97         run the following command as the
    98         <systemitem class="username">root</systemitem> user:
     85        Build the module:
    9986      </para>
    10087
    101 <screen role="root"><userinput>python2 setup.py install - -optimize=1</userinput></screen>
    102 -->
     88<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
     89
    10390      <para>
    104         To install the <application>Python 3</application> module,
    105         run the following command as the
    106         <systemitem class="username">root</systemitem> user:
     91        Install the module as the &root; user:
    10792      </para>
    10893
    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>
     94<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir Mako</userinput></screen>
    11195    </sect3>
    112 <!--
    113     <sect3 role="commands">
    114       <title>Command Explanations</title>
    11596
    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>
     97    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     98      href="../../xincludes/pip3-cmd-explain.xml"/>
    12399
    124     </sect3>
    125 -->
    126100    <sect3 role="content">
    127101      <title>Contents</title>
     
    140114          </seg>
    141115          <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. -->
     116            /usr/lib/python&python3-majorver;/site-packages/mako and
     117            /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist=info
    148118          </seg>
    149119        </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.