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