[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[d2b1e2e] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[5fe69261] | 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
[d2b1e2e] | 5 | %general-entities;
|
---|
[d01c61f] | 6 |
|
---|
[d2b1e2e] | 7 | <!ENTITY pygobject3-download-http
|
---|
[d444a65] | 8 | "&gnome-download-http;/pygobject/&gnome-minor-50;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[f4ac7141] | 9 | <!ENTITY pygobject3-download-ftp " ">
|
---|
[d43c7bf1] | 10 | <!ENTITY pygobject3-md5sum "8f34e4bc1d7d57faf558180b0051c9ef">
|
---|
| 11 | <!ENTITY pygobject3-size "912 KB">
|
---|
| 12 | <!ENTITY pygobject3-buildsize "10 MB (with tests)">
|
---|
[8c9f454] | 13 | <!ENTITY pygobject3-time "0.2 SBU (with tests)">
|
---|
[d2b1e2e] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <!-- Begin PyGObject3 -->
|
---|
| 17 | <sect2 id="pygobject3" xreflabel="PyGObject-&pygobject3-version;">
|
---|
| 18 |
|
---|
| 19 | <title>PyGObject-&pygobject3-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="pygobject3">
|
---|
| 22 | <primary sortas="a-PyGObject3">PyGObject3</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect3 role="package">
|
---|
| 26 | <title>Introduction to PyGObject3 Module</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>PyGObject3</application> provides
|
---|
| 30 | <application>Python</application> bindings to the GObject
|
---|
| 31 | class from <application>GLib</application>.
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
[f822342] | 34 | &lfs122_checked;
|
---|
[d2b1e2e] | 35 |
|
---|
| 36 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&pygobject3-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&pygobject3-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &pygobject3-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &pygobject3-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &pygobject3-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &pygobject3-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">PyGObject3 Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
[f07ad8a] | 74 | &gobject-introspection;
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect5">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
[d2b1e2e] | 79 | <xref linkend="pycairo"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[6d5ce50b] | 82 | <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[f9b7052] | 84 | <xref linkend="gtk4"/>,
|
---|
[72bc906] | 85 | <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
|
---|
| 86 | <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and
|
---|
[8b819c5] | 87 | <xref linkend="pytest"/>
|
---|
[6d5ce50b] | 88 | </para>
|
---|
| 89 |
|
---|
[d2b1e2e] | 90 | </sect3>
|
---|
| 91 |
|
---|
| 92 | <sect3 role="installation">
|
---|
| 93 | <title>Installation of PyGObject3</title>
|
---|
| 94 |
|
---|
[9d31900] | 95 | <para>
|
---|
[1856819] | 96 | First, remove two faulty tests:
|
---|
[9d31900] | 97 | </para>
|
---|
[2da3d572] | 98 |
|
---|
[b59ecb55] | 99 | <screen><userinput remap="pre">mv -v tests/test_gdbus.py{,.nouse} &&
|
---|
[1856819] | 100 | mv -v tests/test_overrides_gtk.py{,.nouse}</userinput></screen>
|
---|
[d2b1e2e] | 101 |
|
---|
[8736e8a] | 102 | <para>
|
---|
| 103 | Install <application>pygobject3</application> by running the following
|
---|
| 104 | commands:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput>mkdir build &&
|
---|
| 108 | cd build &&
|
---|
| 109 |
|
---|
[91318eb] | 110 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[8736e8a] | 111 | ninja</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | <para>
|
---|
| 114 | To test the results, issue: <command>ninja test</command>.
|
---|
| 115 | An already active graphical session with a bus address is necessary
|
---|
[99ae2600] | 116 | to run the tests. <!--One test, <filename>tests/test_gdbus.py</filename>,
|
---|
| 117 | is known to fail.--> Another round of tests may report ERROR if
|
---|
[f9b7052] | 118 | <xref linkend="gtk4" role="nodep"/> is not installed.
|
---|
[8736e8a] | 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[d2b1e2e] | 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
[20f070d8] | 129 | <sect3 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
| 132 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 133 | href="../../../xincludes/meson-buildtype-release.xml"/>
|
---|
[f07ad8a] | 134 |
|
---|
| 135 | <para>
|
---|
[b59ecb55] | 136 | <option>-D pycairo=disabled</option>: use this switch if you do not
|
---|
| 137 | have <xref linkend="pycairo"/> installed.
|
---|
[f07ad8a] | 138 | </para>
|
---|
[20f070d8] | 139 | </sect3>
|
---|
| 140 |
|
---|
[d2b1e2e] | 141 | <sect3 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
| 145 | <segtitle>Installed Programs</segtitle>
|
---|
| 146 | <segtitle>Installed Library</segtitle>
|
---|
| 147 | <segtitle>Installed Directories</segtitle>
|
---|
| 148 |
|
---|
| 149 | <seglistitem>
|
---|
| 150 | <seg>
|
---|
| 151 | None
|
---|
| 152 | </seg>
|
---|
| 153 | <seg>
|
---|
[d94bd7f4] | 154 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
|
---|
[d2b1e2e] | 155 | </seg>
|
---|
| 156 | <seg>
|
---|
[8736e8a] | 157 | /usr/include/pygobject-3.0 and
|
---|
[d2b1e2e] | 158 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
| 159 | </seg>
|
---|
| 160 | </seglistitem>
|
---|
| 161 | </segmentedlist>
|
---|
| 162 |
|
---|
| 163 | </sect3>
|
---|
| 164 |
|
---|
| 165 | </sect2>
|
---|