Changeset b512e97 for postlfs/security


Ignore:
Timestamp:
09/03/2023 08:51:00 AM (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:
0425945
Parents:
c3ad4c38
Message:

libpwquality: Use pip3 wheel for building Python module

Addresses #18455 (comment 1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/libpwquality.xml

    rc3ad4c38 rb512e97  
    9999            --disable-static                   \
    100100            --with-securedir=/usr/lib/security \
    101             --with-python-binary=python3       &amp;&amp;
    102 make</userinput></screen>
     101            --disable-python-bindings          &amp;&amp;
     102make &amp;&amp;
     103pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir \
     104           $PWD/python</userinput></screen>
    103105
    104106    <para>
     
    110112    </para>
    111113
    112 <screen role="root"><userinput>make install</userinput></screen>
     114<screen role="root"><userinput>make install &amp;&amp;
     115pip3 install --no-index --find-links=dist --no-cache-dir pwquality</userinput></screen>
    113116
    114117  </sect2>
     
    118121
    119122    <para>
    120       <parameter>--with-python-binary=python3</parameter>: This parameter gives
    121       the location of the <application>Python</application> binary. The default
    122       is <parameter>python</parameter>, and requires <xref linkend="python2"/>.
     123      <parameter>--disable-python-bindings</parameter>: This parameter
     124      disables building Python bindings with the deprecated
     125      <command>python3 setup.py build</command> command.  The explicit
     126      instruction to build the Python 3 binding with the
     127      <command>pip3 wheel</command> command is provided.
    123128    </para>
    124129
     
    178183        </seg>
    179184        <seg>
    180           None
     185          /usr/lib/python3.11/site-packages/pwquality-&libpwquality-version;.dist-info
    181186          <!-- /etc/security was installed by Linux-PAM -->
    182187        </seg>
Note: See TracChangeset for help on using the changeset viewer.