Changeset b9a4450


Ignore:
Timestamp:
04/21/2022 01:13:36 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:
3f04503
Parents:
e7d47128
Message:

Update scour instructions

Location:
general/prog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/prog/scour.xml

    re7d47128 rb9a4450  
    2323
    2424    <sect3 role="package">
    25       <title>Introduction to Scour</title>
     25      <title>Introduction to Scour Module</title>
    2626
    2727      <para>
     
    7171      <bridgehead renderas="sect5">Required</bridgehead>
    7272      <para role="required">
    73         <xref linkend="six"/> (will be automatically downloaded and installed
    74         if not already present)
     73        <xref linkend="six"/>
    7574      </para>
    76 <!--
    77       <note>
    78         <para>
    79           Although the download link works fine with wget, in this case downloading
    80           with a browser such as firefox will create scour-038.1.tar.gz.
    81         </para>
    82       </note>
    83 -->
     75
    8476      <para condition="html" role="usernotes">
    8577        User Notes: <ulink url="&blfs-wiki;/scour"/>
     
    9082      <title>Installation of scour</title>
    9183
    92 <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
     84      <para>When building, the procedure thinks that that the current version of
     85      <xref linkend="six"/> is less than six-1.9.  Fix that with:</para>
     86
     87<screen><userinput>sed -i '/requires/s/9/10/' setup.py</userinput></screen>
     88
    9389      <para>
    94         To build the <application>Python 3</application> module
    95         run the following commands:
     90        Build the module:
    9691      </para>
    9792
    98 <screen><userinput>python3 setup.py build</userinput></screen>
     93<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
    9994
    10095      <para>
    101         To partially test the results, issue: <command>python3 test_css.py</command>.
    102         If you have installed <application>Six</application> you can run the main
    103         tests by issuing: <command>python3 test_scour.py</command>.
     96        To install the module, run the following command as the &root; user:
    10497      </para>
    10598
    106       <para>
    107         To install the module, run the following command as the
    108         <systemitem class="username">root</systemitem> user:
    109       </para>
    110 
    111 <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
     99<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir scour</userinput></screen>
    112100
    113101    </sect3>
     102
     103    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     104      href="../../xincludes/pip3-cmd-explain.xml"/>
    114105
    115106    <sect3 role="content">
     
    129120          </seg>
    130121          <seg>
    131             None
     122            /usr/lib/python3.10/site-packages/scour and
     123            /usr/lib/python3.10/site-packages/scour-&scour-version;.dist-info
    132124          </seg>
    133125        </seglistitem>
  • general/prog/six.xml

    re7d47128 rb9a4450  
    138138          </seg>
    139139          <seg>
    140             None
    141 <!--            /usr/lib/python&python2-majorver;/site-packages/six-&six-version;-py&python2-majorver;.egg and/or
    142             /usr/lib/python&python3-majorver;/site-packages/six-&six-version;-py&python3-majorver;.egg-->
     140            /usr/lib/python&python3-majorver;/site-packages/six-&six-version;.dist-info
    143141          </seg>
    144142        </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.