source: general/prog/pygobject3.xml@ a548a49

10.0 10.1 11.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since a548a49 was a548a49, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Style: Add a double ampersand to remove a warning from meson.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22371 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.4 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-34;/pygobject-&pygobject3-version;.tar.xz">
9 <!ENTITY pygobject3-download-ftp
10 "&gnome-download-ftp;/pygobject/&gnome-minor-34;/pygobject-&pygobject3-version;.tar.xz">
11 <!ENTITY pygobject3-md5sum "ca1dc4f31c1d6d283758e8f315a88ab6">
12 <!ENTITY pygobject3-size "540 KB">
13 <!ENTITY pygobject3-buildsize "20 MB">
14 <!ENTITY pygobject3-time "0.1 SBU (Using parallelism=4)">
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 &lfs90_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">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="python2"/> and
83 <xref linkend="pycairo"/>
84 (<application>Python 2</application> module)
85 </para>
86
87 <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
88 <para role="optional">
89 <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
90 <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and
91 <ulink url="https://pypi.python.org/pypi/pytest">pytest</ulink>
92 <!-- pytest brings in a lot of dependencies - upwards of 10 -->
93 </para>
94
95 <para condition="html" role="usernotes">
96 User Notes: <ulink url="&blfs-wiki;/pygobject3"/>
97 </para>
98 </sect3>
99
100 <sect3 role="installation">
101 <title>Installation of PyGObject3</title>
102
103 <note>
104 <para>
105 Both <application>Python 2</application> and
106 <application>Python 3</application> modules can
107 be built and installed without any conflicts.
108 </para>
109 </note>
110
111 <para>
112 To build <application>PyGObject3</application> as a
113 <application>Python 2</application> module, run the
114 following commands:
115 </para>
116
117<screen><userinput>mkdir python2 &amp;&amp;
118pushd python2 &amp;&amp;
119meson --prefix=/usr -Dpython=python2 .. &amp;&amp;
120ninja &amp;&amp;
121popd</userinput></screen>
122
123 <para>
124 To test the results, issue: <command>ninja -C python2 test</command>.
125 An already active graphical session with bus address is necessary to
126 run the tests. Two tests fail due to a search for GTK+-4, which has not
127 been released yet.
128 </para>
129
130 <para>
131 To build <application>PyGObject3</application> as a
132 <application>Python 3</application> module, run the
133 following commands:
134 </para>
135
136<screen><userinput>mkdir python3 &amp;&amp;
137pushd python3 &amp;&amp;
138meson --prefix=/usr -Dpython=python3 .. &amp;&amp;
139ninja &amp;&amp;
140popd</userinput></screen>
141
142 <para>
143 To test the results, issue: <command>ninja -C python3 test</command>.
144 An already active graphical session with bus address is necessary to
145 run the tests. Two tests fail due to a search for GTK+-4, which has not
146 been released yet.
147 </para>
148
149 <para>
150 To install the <application>Python 2</application> module,
151 run the following command as the
152 <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>ninja -C python2 install</userinput></screen>
156
157 <para>
158 To install the <application>Python 3</application> module,
159 run the following command as the
160 <systemitem class="username">root</systemitem> user:
161 </para>
162
163<screen role="root"><userinput>ninja -C python3 install</userinput></screen>
164
165 </sect3>
166
167 <sect3 role="content">
168 <title>Contents</title>
169
170 <segmentedlist>
171 <segtitle>Installed Programs</segtitle>
172 <segtitle>Installed Library</segtitle>
173 <segtitle>Installed Directories</segtitle>
174
175 <seglistitem>
176 <seg>
177 None
178 </seg>
179 <seg>
180 /usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or
181 /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-38m-&lt;arch&gt;-linux-gnu.so
182 </seg>
183 <seg>
184 /usr/include/pygobject-3.0, and
185 /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
186 /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
187 </seg>
188 </seglistitem>
189 </segmentedlist>
190
191 </sect3>
192
193 </sect2>
194 <!-- End PyGObject -->
Note: See TracBrowser for help on using the repository browser.