source: general/prog/pygobject3.xml@ 427b46a

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 427b46a was 3df8ea47, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Tags for libraries

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

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