Changeset 1cdea83


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.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r8cc28db6 r1cdea83  
    204204<!ENTITY qt5-deps
    205205         "(<xref linkend='qt5'/> or <xref role='nodep' linkend='qt5-alternate'/>)">
     206
     207<!ENTITY build-wheel '<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir .</userinput></screen>'>
     208
     209<!ENTITY install-wheel 'pip3 install --no-index --find-links=dist --no-cache-dir --no-user'>
  • 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>
  • postlfs/security/gpgme.xml

    r8cc28db6 r1cdea83  
    165165
    166166<screen role="root"><userinput>if swig -version > /dev/null; then
    167   pip3 install --no-index --find-links=dist --no-cache-dir --no-user gpg
     167  &install-wheel; gpg
    168168fi</userinput></screen>
    169169
  • postlfs/security/libpwquality.xml

    r8cc28db6 r1cdea83  
    113113
    114114<screen role="root"><userinput>make install &amp;&amp;
    115 pip3 install --no-index --find-links=dist --no-cache-dir pwquality</userinput></screen>
     115&install-wheel; pwquality</userinput></screen>
    116116
    117117  </sect2>
Note: See TracChangeset for help on using the changeset viewer.