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/3.12/pygobject-&pygobject3-version;.tar.xz">
|
---|
9 | <!ENTITY pygobject3-download-ftp
|
---|
10 | "&gnome-download-ftp;/pygobject/3.12/pygobject-&pygobject3-version;.tar.xz">
|
---|
11 | <!ENTITY pygobject3-md5sum "fd9b1e956ee2e2dae544e57b1858596b">
|
---|
12 | <!ENTITY pygobject3-size "688 KB">
|
---|
13 | <!ENTITY pygobject3-buildsize "21 MB (additional 3 MB for the tests)">
|
---|
14 | <!ENTITY pygobject3-time "0.3 SBU (additional 0.2 SBU for the 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 | &lfs75_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="py2cairo"/>
|
---|
77 | (for <application>Python 2</application> bindings) and/or
|
---|
78 | <xref linkend="pycairo"/>
|
---|
79 | (for <application>Python 3</application> bindings)
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <para condition="html" role="usernotes">
|
---|
83 | User Notes: <ulink url="&blfs-wiki;/pygobject3"/>
|
---|
84 | </para>
|
---|
85 | </sect3>
|
---|
86 |
|
---|
87 | <sect3 role="installation">
|
---|
88 | <title>Installation of PyGObject3</title>
|
---|
89 |
|
---|
90 | <note>
|
---|
91 | <para>
|
---|
92 | Both <application>Python 2</application> and
|
---|
93 | <application>Python 3</application> modules can
|
---|
94 | be built and installed without any conflicts.
|
---|
95 | </para>
|
---|
96 | </note>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | If you wish to run the test suite, optionally use the following
|
---|
100 | command so that one test is marked as "expected failure":
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <screen><userinput>sed -i '/test_out_glist/ i\ @unittest.expectedFailure' \
|
---|
104 | tests/test_atoms.py</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | To build <application>PyGObject3</application> as the
|
---|
108 | <application>Python 2</application> module, run the
|
---|
109 | following commands:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen><userinput>mkdir python2 &&
|
---|
113 | pushd python2 &&
|
---|
114 | ../configure --prefix=/usr --with-python=/usr/bin/python &&
|
---|
115 | make &&
|
---|
116 | popd</userinput></screen>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | To test the results, issue: <command>make -C python2 check</command>.
|
---|
120 | An already active graphical session with bus address is necessary to
|
---|
121 | run the tests.
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | To build <application>PyGObject3</application> as the
|
---|
126 | <application>Python 3</application> module, run the
|
---|
127 | following commands:
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | <screen><userinput>mkdir python3 &&
|
---|
131 | pushd python3 &&
|
---|
132 | ../configure --prefix=/usr --with-python=/usr/bin/python3 &&
|
---|
133 | make &&
|
---|
134 | popd</userinput></screen>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | To test the results, issue: <command>make -C python3 -k check</command>.
|
---|
138 | An already active graphical session with bus address is necessary to
|
---|
139 | run the tests. Some tests fail for unknown reasons.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | To install the <application>Python 2</application> module,
|
---|
144 | run the following command as the
|
---|
145 | <systemitem class="username">root</systemitem> user:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen role="root"><userinput>make -C python2 install</userinput></screen>
|
---|
149 |
|
---|
150 | <para>
|
---|
151 | To install the <application>Python 3</application> module,
|
---|
152 | run the following command as the
|
---|
153 | <systemitem class="username">root</systemitem> user:
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <screen role="root"><userinput>make -C python3 install</userinput></screen>
|
---|
157 |
|
---|
158 | </sect3>
|
---|
159 |
|
---|
160 | <sect3 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Programs</segtitle>
|
---|
165 | <segtitle>Installed Library</segtitle>
|
---|
166 | <segtitle>Installed Directories</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>
|
---|
170 | None
|
---|
171 | </seg>
|
---|
172 | <seg>
|
---|
173 | /usr/lib/python&python2-majorver;/site-packages/gi/{_gi.so,_gi_cairo.so}
|
---|
174 | and/or
|
---|
175 | /usr/lib/python&python3-majorver;/site-packages/gi/{_gi_cairo.cpython-34m.so,_gi.cpython-34m.so}
|
---|
176 | </seg>
|
---|
177 | <seg>
|
---|
178 | /usr/include/pygobject-3.0 and
|
---|
179 | /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
|
---|
180 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
181 | </seg>
|
---|
182 | </seglistitem>
|
---|
183 | </segmentedlist>
|
---|
184 |
|
---|
185 | </sect3>
|
---|
186 |
|
---|
187 | </sect2>
|
---|
188 | <!-- End PyGObject -->
|
---|