[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" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[d01c61f] | 6 |
|
---|
[d2b1e2e] | 7 | <!ENTITY pygobject3-download-http
|
---|
[3b339ddc] | 8 | "&gnome-download-http;/pygobject/&gnome-minor-40;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[d2b1e2e] | 9 | <!ENTITY pygobject3-download-ftp
|
---|
[3b339ddc] | 10 | "&gnome-download-ftp;/pygobject/&gnome-minor-40;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[9d31900] | 11 | <!ENTITY pygobject3-md5sum "f27e0a2d1526df57c89624cdebbd69e0">
|
---|
[d92586ad] | 12 | <!ENTITY pygobject3-size "544 KB">
|
---|
[8736e8a] | 13 | <!ENTITY pygobject3-buildsize "15 MB">
|
---|
[9d31900] | 14 | <!ENTITY pygobject3-time "0.2 SBU (Using parallelism=4)">
|
---|
[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 |
|
---|
[7ae59ab] | 35 | &lfs110_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">
|
---|
[72bc906] | 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 -->
|
---|
[6d5ce50b] | 86 | </para>
|
---|
| 87 |
|
---|
[d2b1e2e] | 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 |
|
---|
[9d31900] | 96 | <para>
|
---|
| 97 | First, remove a faulty test:
|
---|
| 98 | </para>
|
---|
[2da3d572] | 99 |
|
---|
[9d31900] | 100 | <screen><userinput remap="pre">mv -v tests/test_gdbus.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 |
|
---|
[20f070d8] | 110 | meson --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
|
---|
| 116 | to run the tests. One test, <filename>tests/test_gdbus.py</filename>,
|
---|
| 117 | is known to fail.
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para>
|
---|
| 121 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[d2b1e2e] | 125 |
|
---|
| 126 | </sect3>
|
---|
| 127 |
|
---|
[20f070d8] | 128 | <sect3 role="commands">
|
---|
| 129 | <title>Command Explanations</title>
|
---|
| 130 |
|
---|
| 131 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 132 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 133 | </sect3>
|
---|
| 134 |
|
---|
[d2b1e2e] | 135 | <sect3 role="content">
|
---|
| 136 | <title>Contents</title>
|
---|
| 137 |
|
---|
| 138 | <segmentedlist>
|
---|
| 139 | <segtitle>Installed Programs</segtitle>
|
---|
| 140 | <segtitle>Installed Library</segtitle>
|
---|
| 141 | <segtitle>Installed Directories</segtitle>
|
---|
| 142 |
|
---|
| 143 | <seglistitem>
|
---|
| 144 | <seg>
|
---|
| 145 | None
|
---|
| 146 | </seg>
|
---|
| 147 | <seg>
|
---|
[8736e8a] | 148 | <!--/usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or-->
|
---|
[d94bd7f4] | 149 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
|
---|
[d2b1e2e] | 150 | </seg>
|
---|
| 151 | <seg>
|
---|
[8736e8a] | 152 | /usr/include/pygobject-3.0 and
|
---|
| 153 | <!--/usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or-->
|
---|
[d2b1e2e] | 154 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
| 155 | </seg>
|
---|
| 156 | </seglistitem>
|
---|
| 157 | </segmentedlist>
|
---|
| 158 |
|
---|
| 159 | </sect3>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|