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-42;/pygobject-&pygobject3-version;.tar.xz">
|
---|
9 | <!ENTITY pygobject3-download-ftp
|
---|
10 | "&gnome-download-ftp;/pygobject/&gnome-minor-42;/pygobject-&pygobject3-version;.tar.xz">
|
---|
11 | <!ENTITY pygobject3-md5sum "8b2fa857229aaf526781376a20367ba8">
|
---|
12 | <!ENTITY pygobject3-size "548 KB">
|
---|
13 | <!ENTITY pygobject3-buildsize "7.1 MB">
|
---|
14 | <!ENTITY pygobject3-time "0.1 SBU">
|
---|
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 | &lfs111_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 | <ulink url="https://pypi.python.org/pypi/pytest">pytest</ulink>
|
---|
86 | <!-- pytest brings in a lot of dependencies - upwards of 10 -->
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <para condition="html" role="usernotes">
|
---|
90 | User Notes: <ulink url="&blfs-wiki;/pygobject3"/>
|
---|
91 | </para>
|
---|
92 | </sect3>
|
---|
93 |
|
---|
94 | <sect3 role="installation">
|
---|
95 | <title>Installation of PyGObject3</title>
|
---|
96 |
|
---|
97 | <para>
|
---|
98 | First, remove a faulty test:
|
---|
99 | </para>
|
---|
100 |
|
---|
101 | <screen><userinput remap="pre">mv -v tests/test_gdbus.py{,.nouse}</userinput></screen>
|
---|
102 |
|
---|
103 | <para>
|
---|
104 | Install <application>pygobject3</application> by running the following
|
---|
105 | commands:
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <screen><userinput>mkdir build &&
|
---|
109 | cd build &&
|
---|
110 |
|
---|
111 | meson --prefix=/usr --buildtype=release .. &&
|
---|
112 | ninja</userinput></screen>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | To test the results, issue: <command>ninja test</command>.
|
---|
116 | An already active graphical session with a bus address is necessary
|
---|
117 | to run the tests. One test, <filename>tests/test_gdbus.py</filename>,
|
---|
118 | is known to fail. Another round of tests may report ERROR if
|
---|
119 | <xref linkend="gtk4" role="nodep"/> is not installed.
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
127 |
|
---|
128 | </sect3>
|
---|
129 |
|
---|
130 | <sect3 role="commands">
|
---|
131 | <title>Command Explanations</title>
|
---|
132 |
|
---|
133 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
134 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
135 | </sect3>
|
---|
136 |
|
---|
137 | <sect3 role="content">
|
---|
138 | <title>Contents</title>
|
---|
139 |
|
---|
140 | <segmentedlist>
|
---|
141 | <segtitle>Installed Programs</segtitle>
|
---|
142 | <segtitle>Installed Library</segtitle>
|
---|
143 | <segtitle>Installed Directories</segtitle>
|
---|
144 |
|
---|
145 | <seglistitem>
|
---|
146 | <seg>
|
---|
147 | None
|
---|
148 | </seg>
|
---|
149 | <seg>
|
---|
150 | <!--/usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or-->
|
---|
151 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
|
---|
152 | </seg>
|
---|
153 | <seg>
|
---|
154 | /usr/include/pygobject-3.0 and
|
---|
155 | <!--/usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or-->
|
---|
156 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
157 | </seg>
|
---|
158 | </seglistitem>
|
---|
159 | </segmentedlist>
|
---|
160 |
|
---|
161 | </sect3>
|
---|
162 |
|
---|
163 | </sect2>
|
---|