Ignore:
Timestamp:
09/14/2023 09:43:22 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.2, gimp3, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128
Children:
2347983d
Parents:
359e34cb
Message:

brotli: Link Python3 binding to system library, and run its testsuite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/brotli.xml

    r359e34cb r4f52b38  
    7878    </para>
    7979
     80    <bridgehead renderas="sect4">Optional</bridgehead>
     81    <para role="optional">
     82      <xref linkend="pluggy"/> and
     83      <xref linkend="pytest"/> (for testing Python3 bindings)
     84    </para>
     85
    8086  </sect2>
    8187
     
    120126
    121127<screen><userinput>cd .. &amp;&amp;
     128sed "/c\/.*\.[ch]'/d;\
     129     /include_dirs=\[/\
     130     i libraries=['brotlicommon','brotlidec','brotlienc']," \
     131    -i setup.py &amp;&amp;
    122132&build-wheel-cmd; $PWD</userinput></screen>
    123133
     
    128138
    129139<screen role="root"><userinput>&install-wheel; Brotli</userinput></screen>
     140
     141    <!-- "131 passed in 2.76s" for me with 1.1.0 -->
     142    <para>
     143      To test the <application>Python3</application> binding, issue:
     144      <command>pytest</command>.
     145    </para>
     146  </sect2>
     147
     148  <sect2 role="commands">
     149    <title>Command Explanations</title>
     150
     151    <!-- https://github.com/google/brotli/issues/933 -->
     152    <para>
     153      <command>sed ... -i setup.py</command>: Stop
     154      <filename>setup.py</filename> from rebuilding the entire package all
     155      over again, use the already installed libraries for the
     156      <application>Python3</application> binding instead.
     157    </para>
     158
     159    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     160      href="../../xincludes/static-libraries.xml"/>
    130161
    131162  </sect2>
Note: See TracChangeset for help on using the changeset viewer.