dbus-python: switch to pip build (#17547)

This commit is contained in:
Xi Ruoyao 2023-01-23 11:30:02 +08:00
parent 7e24b60bf0
commit 9209f7c10a
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 20 additions and 30 deletions

View File

@ -8,8 +8,8 @@
<!ENTITY dbus-python-download-ftp " ">
<!ENTITY dbus-python-md5sum "33be8a4a766e1c7c9a377b8f934ce21a">
<!ENTITY dbus-python-size "592 KB">
<!ENTITY dbus-python-buildsize "4.7 MB (with tests)" >
<!ENTITY dbus-python-time "less than 0.1 SBU (with tests)">
<!ENTITY dbus-python-buildsize "4.0 MB" >
<!ENTITY dbus-python-time "less than 0.1 SBU">
<!ENTITY dbus-python-egg-info "&python3-site;/dbus_python-&dbus-python-version;.egg-info">
]>
@ -70,23 +70,26 @@
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="dbus"/> and
<xref linkend="glib2"/>
<xref linkend="dbus"/>,
<xref linkend="glib2"/>,
<xref linkend="meson_python"/>, and
<xref linkend="patchelf"/>
</para>
<!-- no tests available yet
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<xref linkend="pygobject3"/> and
<ulink url="https://pypi.python.org/pypi/tap.py/">tap.py</ulink>
(required for some tests)
</para>
-->
<!-- how to build the doc?
<bridgehead renderas="sect5">
Optional (Required to build the API and HTML Documentation)</bridgehead>
<para role="optional">
<xref linkend="sphinx_rtd_theme"/>
</para>
-->
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/dbus-python"/>
</para>
@ -96,42 +99,25 @@
<title>Installation of D-Bus Python</title>
<para>
Build the D-Bus Python module by running the following commands:
Build the D-Bus Python module by running the following command:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr --buildtype=release .. &amp;&amp;
ninja</userinput></screen>
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
<para>
To test the results, issue: <command>ninja test</command>.
This package does not come with a test suite.
</para>
<para>
Now install the module as the &root; user:
</para>
<screen role="root"><userinput>ninja install &amp;&amp;
cp -rv ../dbus_python.egg-info \
-T &dbus-python-egg-info;</userinput></screen>
<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user dbus-python</userinput></screen>
</sect3>
<sect3 role="commands">
<title>Command Explanations</title>
<para>
<command>cp -rv ... -T ...</command>: Install the metadata of this
Python module so <command>pip3</command> will be able to find this
module and use it as a dependency building and installing other
modules. <parameter>-T</parameter> is used to make this command
behave properly in case that this module is reinstalled.
</para>
</sect3>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../../xincludes/pip3-cmd-explain.xml"/>
<sect3 role="content">
<title>Contents</title>

View File

@ -41,6 +41,10 @@
<listitem>
<para>January 22nd, 2023</para>
<itemizedlist>
<listitem>
<para>[xry111] - Use pip to install dbus-python. Fixes
<ulink url="&blfs-ticket-root;17547">#17547</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Add meson_python-0.12.0
(Python dependencies). Part of