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-28;/pygobject-&pygobject3-version;.tar.xz">
|
---|
9 | <!ENTITY pygobject3-download-ftp
|
---|
10 | "&gnome-download-ftp;/pygobject/&gnome-minor-28;/pygobject-&pygobject3-version;.tar.xz">
|
---|
11 | <!ENTITY pygobject3-md5sum "3bac63c86bb963aa401f97859464aa90">
|
---|
12 | <!ENTITY pygobject3-size "984 KB">
|
---|
13 | <!ENTITY pygobject3-buildsize "23 MB (both modules, with tests)">
|
---|
14 | <!ENTITY pygobject3-time "0.3 SBU (both modules, 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 | &lfs83_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 | (for <application>Python 2</application> and/or
|
---|
78 | <application>Python 3</application> bindings)
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink> and
|
---|
84 | <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <para condition="html" role="usernotes">
|
---|
88 | User Notes: <ulink url="&blfs-wiki;/pygobject3"/>
|
---|
89 | </para>
|
---|
90 | </sect3>
|
---|
91 |
|
---|
92 | <sect3 role="installation">
|
---|
93 | <title>Installation of PyGObject3</title>
|
---|
94 |
|
---|
95 | <note>
|
---|
96 | <para>
|
---|
97 | Both <application>Python 2</application> and
|
---|
98 | <application>Python 3</application> modules can
|
---|
99 | be built and installed without any conflicts.
|
---|
100 | </para>
|
---|
101 | </note>
|
---|
102 |
|
---|
103 | <para>
|
---|
104 | To build <application>PyGObject3</application> as the
|
---|
105 | <application>Python 2</application> module, run the
|
---|
106 | following commands:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen><userinput>mkdir python2 &&
|
---|
110 | pushd python2 &&
|
---|
111 | ../configure --prefix=/usr --with-python=/usr/bin/python &&
|
---|
112 | make &&
|
---|
113 | popd</userinput></screen>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | To test the results, issue: <command>make -C python2 check</command>.
|
---|
117 | An already active graphical session with bus address is necessary to
|
---|
118 | run the tests.
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | To build <application>PyGObject3</application> as the
|
---|
123 | <application>Python 3</application> module, run the
|
---|
124 | following commands:
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <screen><userinput>mkdir python3 &&
|
---|
128 | pushd python3 &&
|
---|
129 | ../configure --prefix=/usr --with-python=/usr/bin/python3 &&
|
---|
130 | make &&
|
---|
131 | popd</userinput></screen>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | To test the results, issue: <command>make -C python3 check</command>.
|
---|
135 | An already active graphical session with bus address is necessary to
|
---|
136 | run the tests.
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | To install the <application>Python 2</application> module,
|
---|
141 | run the following command as the
|
---|
142 | <systemitem class="username">root</systemitem> user:
|
---|
143 | </para>
|
---|
144 |
|
---|
145 | <screen role="root"><userinput>make -C python2 install</userinput></screen>
|
---|
146 |
|
---|
147 | <para>
|
---|
148 | To install the <application>Python 3</application> module,
|
---|
149 | run the following command as the
|
---|
150 | <systemitem class="username">root</systemitem> user:
|
---|
151 | </para>
|
---|
152 |
|
---|
153 | <screen role="root"><userinput>make -C python3 install</userinput></screen>
|
---|
154 |
|
---|
155 | </sect3>
|
---|
156 |
|
---|
157 | <sect3 role="content">
|
---|
158 | <title>Contents</title>
|
---|
159 |
|
---|
160 | <segmentedlist>
|
---|
161 | <segtitle>Installed Programs</segtitle>
|
---|
162 | <segtitle>Installed Library</segtitle>
|
---|
163 | <segtitle>Installed Directories</segtitle>
|
---|
164 |
|
---|
165 | <seglistitem>
|
---|
166 | <seg>
|
---|
167 | None
|
---|
168 | </seg>
|
---|
169 | <seg>
|
---|
170 | /usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so
|
---|
171 | and/or
|
---|
172 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-35m-<arch>-linux-gnu.so
|
---|
173 | </seg>
|
---|
174 | <seg>
|
---|
175 | /usr/include/pygobject-3.0, and
|
---|
176 | /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
|
---|
177 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
178 | </seg>
|
---|
179 | </seglistitem>
|
---|
180 | </segmentedlist>
|
---|
181 |
|
---|
182 | </sect3>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 | <!-- End PyGObject -->
|
---|