Ignore:
Timestamp:
01/04/2023 06:05:12 PM (16 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
qt5new
Children:
c0ef2f9
Parents:
1daaab6d (diff), 811d39b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'trunk' into qt5new

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/docutils.xml

    r1daaab6d r104ff4e  
    77  <!ENTITY docutils-download-http "https://downloads.sourceforge.net/docutils/docutils-&docutils-version;.tar.gz">
    88  <!ENTITY docutils-download-ftp  " ">
    9   <!ENTITY docutils-md5sum        "ca5827e2432fd58f4c8d74a6591135de">
    10   <!ENTITY docutils-size          "1.9 MB">
     9  <!ENTITY docutils-md5sum        "0afa992a6e93db892107c3f087d0d9df">
     10  <!ENTITY docutils-size          "2.0 MB">
    1111  <!ENTITY docutils-buildsize     "12 MB">
    1212  <!ENTITY docutils-time          "less than 0.1 SBU">
     
    3131      </para>
    3232
    33       &lfs110a_checked;
     33      &lfs112_checked;
    3434
    3535      <bridgehead renderas="sect4">Package Information</bridgehead>
     
    9191      </para>
    9292
    93 <screen><userinput>python3 setup.py build</userinput></screen>
     93<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
    9494
    9595      <para>
    9696        To install the <application>Python</application> applications
    97         run the following as the
    98         <systemitem class="username">root</systemitem> user:
     97        run the following as the &root; user:
    9998      </para>
    10099
    101 <screen role="root"><userinput>python3 setup.py install --optimize=1 &amp;&amp;
     100<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user docutils &amp;&amp;
    102101
    103102for f in /usr/bin/rst*.py; do
     
    105104done</userinput></screen>
    106105
     106      <!-- FHS 3.0 section 4.4.2:
     107           "There must be no subdirectories in /usr/bin."
     108           But pip maintainers closed this as WONTFIX:
     109           https://github.com/pypa/pip/issues/6906 -->
     110      <para>
     111        To reduce the time needed for loading Python scripts,
     112        <command>pip3 install</command> will compile the scripts with
     113        extension <filename class='extension'>.py</filename> into byte code
     114        and save the result into
     115        <filename class='extension'>.pyc</filename> files in the directory
     116        <filename class='directory'>__pycache__</filename>.
     117        But this package installs <filename class='extension'>.py</filename>
     118        scripts into <filename class='directory'>/usr/bin</filename>.
     119        So the byte code files for them will be installed into
     120        <filename class='directory'>/usr/bin/__pycache__</filename>, which
     121        is not allowed by FHS.  Still as the &root; user, remove this
     122        directory:
     123      </para>
     124
     125<screen role="root"><userinput>rm -rfv /usr/bin/__pycache__</userinput></screen>
    107126    </sect3>
     127
     128    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     129      href="../../xincludes/pip3-cmd-explain.xml"/>
    108130
    109131    <sect3 role="content">
     
    125147          </seg>
    126148          <seg>
    127             /usr/lib/python&python3-majorver;/site-packages/docutils
     149            /usr/lib/python&python3-majorver;/site-packages/docutils{,-&docutils-version;.dist-info}
    128150          </seg>
    129151        </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.