Changeset 1cdea83 for general/prog


Ignore:
Timestamp:
09/05/2023 08:11:02 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
a20b7c92
Parents:
8cc28db6
Message:

scons: Use pip3 wheel & pip3 install instead of setup.py

Also introduce entities for pip3 wheel and pip3 install for future use
(#18466). Reuse the entities for gpgme and libpwquality, so the missed
--no-user in libpwquality is fixed as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/scons.xml

    r8cc28db6 r1cdea83  
    8080    <title>Installation of SCons</title>
    8181
     82    <!-- Commented out because I don't think it's still needed.  If
     83         something bad happens please uncomment.
     84    <screen><userinput>sed -i 's/env python/&amp;3/' SCons/Utilities/*.py &amp;&amp;</userinput></screen> -->
     85
    8286    <para>
    83       Install <application>SCons</application> by running the following
    84       commands as the <systemitem class="username">root</systemitem> user:
     87      Fix the install location of the man pages:
    8588    </para>
    8689
    87 <screen role="root"><userinput>sed -i 's/env python/&amp;3/' SCons/Utilities/*.py &amp;&amp;
     90    <screen><userinput>sed -i '/scons.1/s@^.@share/man/man1@' -i setup.cfg</userinput></screen>
    8891
    89 python3 setup.py install --prefix=/usr \
    90                          --optimize=1  &amp;&amp;
     92    <para>
     93      Build the package:
     94    </para>
    9195
    92 mv -v /usr/lib/python&python3-majorver;/site-packages/SCons-&scons-version;-py&python3-majorver;.egg/*.1 \
    93       /usr/share/man/man1</userinput></screen>
     96    &build-wheel;
    9497
     98    <para>
     99      As the &root; user, install the package:
     100    </para>
     101
     102    <screen role='root'><userinput>&install-wheel; SCons</userinput></screen>
    95103  </sect2>
    96104
     
    111119        </seg>
    112120        <seg>
    113           /usr/lib/python&python3-majorver;/site-packages/SCons
     121          /usr/lib/python&python3-majorver;/site-packages/SCons{,-&scons-version;.dist-info}
    114122        </seg>
    115123      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.