[d2b1e2e] | 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" [
|
---|
[5fe69261] | 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
[d2b1e2e] | 5 | %general-entities;
|
---|
[d01c61f] | 6 |
|
---|
[d2b1e2e] | 7 | <!ENTITY pygobject3-download-http
|
---|
[601bc7a] | 8 | "&gnome-download-http;/pygobject/&gnome-minor-44;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[d2b1e2e] | 9 | <!ENTITY pygobject3-download-ftp
|
---|
[601bc7a] | 10 | "&gnome-download-ftp;/pygobject/&gnome-minor-44;/pygobject-&pygobject3-version;.tar.xz">
|
---|
| 11 | <!ENTITY pygobject3-md5sum "def9418983594c6a3330717bb640ca4d">
|
---|
[f9b7052] | 12 | <!ENTITY pygobject3-size "548 KB">
|
---|
[601bc7a] | 13 | <!ENTITY pygobject3-buildsize "16 MB (add 2.5 MB for tests)">
|
---|
[72c62e4] | 14 | <!ENTITY pygobject3-time "0.1 SBU (with tests)">
|
---|
[d2b1e2e] | 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 |
|
---|
[03c0def] | 35 | &lfs113_checked;
|
---|
[d2b1e2e] | 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"/>
|
---|
[fbb3a43c] | 77 | (<application>Python 3</application> module)
|
---|
[d2b1e2e] | 78 | </para>
|
---|
| 79 |
|
---|
[6d5ce50b] | 80 | <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
|
---|
| 81 | <para role="optional">
|
---|
[f9b7052] | 82 | <xref linkend="gtk4"/>,
|
---|
[72bc906] | 83 | <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
|
---|
| 84 | <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and
|
---|
[8b819c5] | 85 | <xref linkend="pytest"/>
|
---|
[72bc906] | 86 | <!-- pytest brings in a lot of dependencies - upwards of 10 -->
|
---|
[6d5ce50b] | 87 | </para>
|
---|
| 88 |
|
---|
[d2b1e2e] | 89 | </sect3>
|
---|
| 90 |
|
---|
| 91 | <sect3 role="installation">
|
---|
| 92 | <title>Installation of PyGObject3</title>
|
---|
| 93 |
|
---|
[9d31900] | 94 | <para>
|
---|
| 95 | First, remove a faulty test:
|
---|
| 96 | </para>
|
---|
[2da3d572] | 97 |
|
---|
[9d31900] | 98 | <screen><userinput remap="pre">mv -v tests/test_gdbus.py{,.nouse}</userinput></screen>
|
---|
[d2b1e2e] | 99 |
|
---|
[8736e8a] | 100 | <para>
|
---|
| 101 | Install <application>pygobject3</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput>mkdir build &&
|
---|
| 106 | cd build &&
|
---|
| 107 |
|
---|
[91318eb] | 108 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[8736e8a] | 109 | ninja</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | To test the results, issue: <command>ninja test</command>.
|
---|
| 113 | An already active graphical session with a bus address is necessary
|
---|
[99ae2600] | 114 | to run the tests. <!--One test, <filename>tests/test_gdbus.py</filename>,
|
---|
| 115 | is known to fail.--> Another round of tests may report ERROR if
|
---|
[f9b7052] | 116 | <xref linkend="gtk4" role="nodep"/> is not installed.
|
---|
[8736e8a] | 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[d2b1e2e] | 124 |
|
---|
| 125 | </sect3>
|
---|
| 126 |
|
---|
[20f070d8] | 127 | <sect3 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 131 | href="../../../xincludes/meson-buildtype-release.xml"/>
|
---|
[20f070d8] | 132 | </sect3>
|
---|
| 133 |
|
---|
[d2b1e2e] | 134 | <sect3 role="content">
|
---|
| 135 | <title>Contents</title>
|
---|
| 136 |
|
---|
| 137 | <segmentedlist>
|
---|
| 138 | <segtitle>Installed Programs</segtitle>
|
---|
| 139 | <segtitle>Installed Library</segtitle>
|
---|
| 140 | <segtitle>Installed Directories</segtitle>
|
---|
| 141 |
|
---|
| 142 | <seglistitem>
|
---|
| 143 | <seg>
|
---|
| 144 | None
|
---|
| 145 | </seg>
|
---|
| 146 | <seg>
|
---|
[d94bd7f4] | 147 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
|
---|
[d2b1e2e] | 148 | </seg>
|
---|
| 149 | <seg>
|
---|
[8736e8a] | 150 | /usr/include/pygobject-3.0 and
|
---|
[d2b1e2e] | 151 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
| 152 | </seg>
|
---|
| 153 | </seglistitem>
|
---|
| 154 | </segmentedlist>
|
---|
| 155 |
|
---|
| 156 | </sect3>
|
---|
| 157 |
|
---|
| 158 | </sect2>
|
---|