[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
|
---|
[8736e8a] | 8 | "&gnome-download-http;/pygobject/&gnome-minor-38;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[d2b1e2e] | 9 | <!ENTITY pygobject3-download-ftp
|
---|
[8736e8a] | 10 | "&gnome-download-ftp;/pygobject/&gnome-minor-38;/pygobject-&pygobject3-version;.tar.xz">
|
---|
| 11 | <!ENTITY pygobject3-md5sum "2ad8d8f10d1f12a8c66d8179659d5eb9">
|
---|
[d92586ad] | 12 | <!ENTITY pygobject3-size "544 KB">
|
---|
[8736e8a] | 13 | <!ENTITY pygobject3-buildsize "15 MB">
|
---|
[dc7b24a] | 14 | <!ENTITY pygobject3-time "0.1 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 |
|
---|
[3df8ea47] | 35 | &lfs101_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 |
|
---|
[8736e8a] | 96 | <!--
|
---|
[2da3d572] | 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 |
|
---|
[d92586ad] | 111 | <screen><userinput>mkdir python2 &&
|
---|
| 112 | pushd python2 &&
|
---|
[8736e8a] | 113 | meson - -prefix=/usr -Dpython=python2 .. &&
|
---|
[d92586ad] | 114 | ninja &&
|
---|
[2da3d572] | 115 | popd</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
|
---|
[815f8eff] | 120 | run the tests. Two tests fail due to a search for GTK+-4, which has not
|
---|
| 121 | been released yet.
|
---|
[2da3d572] | 122 | </para>
|
---|
| 123 |
|
---|
[d2b1e2e] | 124 | <para>
|
---|
[fbb3a43c] | 125 | To build <application>PyGObject3</application> as a
|
---|
[d2b1e2e] | 126 | <application>Python 3</application> module, run the
|
---|
| 127 | following commands:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[d92586ad] | 130 | <screen><userinput>mkdir python3 &&
|
---|
| 131 | pushd python3 &&
|
---|
[8736e8a] | 132 | meson - -prefix=/usr -Dpython=python3 .. &&
|
---|
[d92586ad] | 133 | ninja &&
|
---|
[2da3d572] | 134 | popd</userinput></screen>
|
---|
[d2b1e2e] | 135 |
|
---|
| 136 | <para>
|
---|
[2da3d572] | 137 | To test the results, issue: <command>ninja -C python3 test</command>.
|
---|
[8c003008] | 138 | An already active graphical session with bus address is necessary to
|
---|
[815f8eff] | 139 | run the tests. Two tests fail due to a search for GTK+-4, which has not
|
---|
| 140 | been released yet.
|
---|
[d2b1e2e] | 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
[2da3d572] | 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
|
---|
[d2b1e2e] | 154 | <systemitem class="username">root</systemitem> user:
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
[2da3d572] | 157 | <screen role="root"><userinput>ninja -C python3 install</userinput></screen>
|
---|
[8736e8a] | 158 | -->
|
---|
| 159 | <para>
|
---|
| 160 | Install <application>pygobject3</application> by running the following
|
---|
| 161 | commands:
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <screen><userinput>mkdir build &&
|
---|
| 165 | cd build &&
|
---|
| 166 |
|
---|
| 167 | meson --prefix=/usr .. &&
|
---|
| 168 | ninja</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>
|
---|
[d2b1e2e] | 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>
|
---|
[8736e8a] | 198 | <!--/usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or-->
|
---|
[d94bd7f4] | 199 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.&python3-lib-suffix;.so
|
---|
[d2b1e2e] | 200 | </seg>
|
---|
| 201 | <seg>
|
---|
[8736e8a] | 202 | /usr/include/pygobject-3.0 and
|
---|
| 203 | <!--/usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or-->
|
---|
[d2b1e2e] | 204 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
| 205 | </seg>
|
---|
| 206 | </seglistitem>
|
---|
| 207 | </segmentedlist>
|
---|
| 208 |
|
---|
| 209 | </sect3>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|