source: general/prog/python-modules/pygobject3.xml@ 3a001df8

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 3a001df8 was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 12 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
7 <!ENTITY pygobject3-download-http
8 "&gnome-download-http;/pygobject/&gnome-minor-44;/pygobject-&pygobject3-version;.tar.xz">
9 <!ENTITY pygobject3-download-ftp
10 "&gnome-download-ftp;/pygobject/&gnome-minor-44;/pygobject-&pygobject3-version;.tar.xz">
11 <!ENTITY pygobject3-md5sum "def9418983594c6a3330717bb640ca4d">
12 <!ENTITY pygobject3-size "548 KB">
13 <!ENTITY pygobject3-buildsize "16 MB (add 2.5 MB for tests)">
14 <!ENTITY pygobject3-time "0.1 SBU (with tests)">
15]>
16
17 <!-- Begin PyGObject3 -->
18 <sect2 id="pygobject3" xreflabel="PyGObject-&pygobject3-version;">
19
20 <title>PyGObject-&pygobject3-version;</title>
21
22 <indexterm zone="pygobject3">
23 <primary sortas="a-PyGObject3">PyGObject3</primary>
24 </indexterm>
25
26 <sect3 role="package">
27 <title>Introduction to PyGObject3 Module</title>
28
29 <para>
30 <application>PyGObject3</application> provides
31 <application>Python</application> bindings to the GObject
32 class from <application>GLib</application>.
33 </para>
34
35 &lfs113_checked;
36
37 <bridgehead renderas="sect4">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&pygobject3-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&pygobject3-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &pygobject3-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &pygobject3-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &pygobject3-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &pygobject3-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect4">PyGObject3 Dependencies</bridgehead>
72
73 <bridgehead renderas="sect5">Required</bridgehead>
74 <para role="required">
75 <xref linkend="gobject-introspection"/> and
76 <xref linkend="pycairo"/>
77 (<application>Python 3</application> module)
78 </para>
79
80 <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
81 <para role="optional">
82 <xref linkend="gtk4"/>,
83 <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
84 <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and
85 <xref linkend="pytest"/>
86 <!-- pytest brings in a lot of dependencies - upwards of 10 -->
87 </para>
88
89 </sect3>
90
91 <sect3 role="installation">
92 <title>Installation of PyGObject3</title>
93
94 <para>
95 First, remove a faulty test:
96 </para>
97
98<screen><userinput remap="pre">mv -v tests/test_gdbus.py{,.nouse}</userinput></screen>
99
100 <para>
101 Install <application>pygobject3</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>mkdir build &amp;&amp;
106cd build &amp;&amp;
107
108meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
109ninja</userinput></screen>
110
111 <para>
112 To test the results, issue: <command>ninja test</command>.
113 An already active graphical session with a bus address is necessary
114 to run the tests. <!--One test, <filename>tests/test_gdbus.py</filename>,
115 is known to fail.--> Another round of tests may report ERROR if
116 <xref linkend="gtk4" role="nodep"/> is not installed.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem> user:
121 </para>
122
123<screen role="root"><userinput>ninja install</userinput></screen>
124
125 </sect3>
126
127 <sect3 role="commands">
128 <title>Command Explanations</title>
129
130 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
131 href="../../../xincludes/meson-buildtype-release.xml"/>
132 </sect3>
133
134 <sect3 role="content">
135 <title>Contents</title>
136
137 <segmentedlist>
138 <segtitle>Installed Programs</segtitle>
139 <segtitle>Installed Library</segtitle>
140 <segtitle>Installed Directories</segtitle>
141
142 <seglistitem>
143 <seg>
144 None
145 </seg>
146 <seg>
147 /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
148 </seg>
149 <seg>
150 /usr/include/pygobject-3.0 and
151 /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
152 </seg>
153 </seglistitem>
154 </segmentedlist>
155
156 </sect3>
157
158 </sect2>
Note: See TracBrowser for help on using the repository browser.