Ignore:
Timestamp:
07/08/2022 03:12:12 PM (22 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
60d108a
Parents:
04ef4c40
Message:

Update D-Bus Python build instructions

Nothing seems to be using the Python2 dbus-python module,
so we can remove it and use the pip3 build/install method
for the Python3 module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/dbus-python.xml

    r04ef4c40 r97a1efc  
    99  <!ENTITY dbus-python-md5sum        "468874f3bf61d1b7deac98bbe2cfd8ac">
    1010  <!ENTITY dbus-python-size          "568 KB">
    11   <!ENTITY dbus-python-buildsize     "10 MB (both versions, with tests)">
    12   <!ENTITY dbus-python-time          "0.3 SBU (both versions, with tests)">
     11  <!ENTITY dbus-python-buildsize     "7.8 MB" >
     12  <!ENTITY dbus-python-time          "0.1 SBU">
    1313]>
    1414
     
    7373        <xref linkend="glib2"/>
    7474      </para>
    75 
     75<!--
    7676      <bridgehead renderas="sect5">Recommended</bridgehead>
    7777      <para role="recommended">
     
    7979        the Python 2 module)
    8080      </para>
    81 
     81-->
    8282      <bridgehead renderas="sect5">Optional</bridgehead>
    8383      <para role="optional">
     
    102102    <sect3 role="installation">
    103103      <title>Installation of D-Bus Python</title>
    104 
     104<!--
    105105      <note>
    106106        <para>
     
    120120pushd python2 &amp;&amp;
    121121PYTHON=/usr/bin/python2     \
    122 ../configure --prefix=/usr --disable-documentation &amp;&amp;
     122../configure - -prefix=/usr - -disable-documentation &amp;&amp;
    123123make &amp;&amp;
    124124popd</userinput></screen>
     
    134134        following commands:
    135135      </para>
     136-->
     137      <para>
     138        To build the <application>Python 3 D-Bus Python</application>
     139        module, run the following command:
     140      </para>
    136141
    137 <screen><userinput>mkdir python3 &amp;&amp;
    138 pushd python3 &amp;&amp;
    139 PYTHON=/usr/bin/python3    \
    140 ../configure --prefix=/usr --docdir=/usr/share/doc/dbus-python-&dbus-python-version; &amp;&amp;
    141 make &amp;&amp;
    142 popd</userinput></screen>
     142<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
    143143
     144<!--
    144145      <para>
    145146        To test the results, issue: <command>make -C python3 check</command>.
     
    153154
    154155<screen role="root"><userinput>make -C python2 install</userinput></screen>
    155 
     156-->
    156157      <para>
    157         To install the <application>Python 3</application> module,
    158         run the following command as the
    159         <systemitem class="username">root</systemitem> user:
     158        To install the module, run the following command as the &root; user:
    160159      </para>
    161160
    162 <screen role="root"><userinput>make -C python3 install</userinput></screen>
     161<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir dbus-python</userinput></screen>
    163162
    164163    </sect3>
     
    170169        <segtitle>Installed Programs</segtitle>
    171170        <segtitle>Installed Libraries</segtitle>
    172         <segtitle>Installed Directories</segtitle>
     171        <segtitle>Installed Directory</segtitle>
    173172
    174173        <seglistitem>
     
    180179          </seg>
    181180          <seg>
    182             /usr/share/doc/dbus-python-&dbus-python-version; and
    183             /usr/lib/python&python2-majorver;/site-packages/dbus and/or
    184181            /usr/lib/python&python3-majorver;/site-packages/dbus
    185182          </seg>
Note: See TracChangeset for help on using the changeset viewer.