[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
|
---|
[0797528] | 8 | "&gnome-download-http;/pygobject/&gnome-minor-22;/pygobject-&pygobject3-version;.tar.xz">
|
---|
[d2b1e2e] | 9 | <!ENTITY pygobject3-download-ftp
|
---|
[0797528] | 10 | "&gnome-download-ftp;/pygobject/&gnome-minor-22;/pygobject-&pygobject3-version;.tar.xz">
|
---|
| 11 | <!ENTITY pygobject3-md5sum "ed4117ed5d554d25fd7718807fbf819f">
|
---|
| 12 | <!ENTITY pygobject3-size "740 KB">
|
---|
| 13 | <!ENTITY pygobject3-buildsize "70 MB (both modules, with tests)">
|
---|
[7b62681] | 14 | <!ENTITY pygobject3-time "0.4 SBU (both modules, 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 |
|
---|
[36de390] | 35 | &lfs7a_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="py2cairo"/>
|
---|
| 77 | (for <application>Python 2</application> bindings) and/or
|
---|
| 78 | <xref linkend="pycairo"/>
|
---|
| 79 | (for <application>Python 3</application> bindings)
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[6d5ce50b] | 82 | <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
| 84 | <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink> and
|
---|
| 85 | <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>
|
---|
| 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 |
|
---|
| 96 | <note>
|
---|
| 97 | <para>
|
---|
| 98 | Both <application>Python 2</application> and
|
---|
| 99 | <application>Python 3</application> modules can
|
---|
| 100 | be built and installed without any conflicts.
|
---|
| 101 | </para>
|
---|
| 102 | </note>
|
---|
[27747668] | 103 | <!--
|
---|
[949e158] | 104 | <para>
|
---|
| 105 | If you wish to run the test suite, optionally use the following
|
---|
[6d5ce50b] | 106 | command to fix one test:
|
---|
[949e158] | 107 | </para>
|
---|
| 108 |
|
---|
[27747668] | 109 | <screen><userinput>sed -i '/d =.*MUSIC/d'
|
---|
| 110 | tests/test_glib.py</userinput></screen>-->
|
---|
[949e158] | 111 |
|
---|
[d2b1e2e] | 112 | <para>
|
---|
| 113 | To build <application>PyGObject3</application> as the
|
---|
| 114 | <application>Python 2</application> module, run the
|
---|
| 115 | following commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>mkdir python2 &&
|
---|
| 119 | pushd python2 &&
|
---|
| 120 | ../configure --prefix=/usr --with-python=/usr/bin/python &&
|
---|
| 121 | make &&
|
---|
| 122 | popd</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
[949e158] | 125 | To test the results, issue: <command>make -C python2 check</command>.
|
---|
[8c003008] | 126 | An already active graphical session with bus address is necessary to
|
---|
| 127 | run the tests.
|
---|
[d2b1e2e] | 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | To build <application>PyGObject3</application> as the
|
---|
| 132 | <application>Python 3</application> module, run the
|
---|
| 133 | following commands:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <screen><userinput>mkdir python3 &&
|
---|
| 137 | pushd python3 &&
|
---|
| 138 | ../configure --prefix=/usr --with-python=/usr/bin/python3 &&
|
---|
| 139 | make &&
|
---|
| 140 | popd</userinput></screen>
|
---|
| 141 |
|
---|
| 142 | <para>
|
---|
[6ebcb8e] | 143 | To test the results, issue: <command>make -C python3 check</command>.
|
---|
[8c003008] | 144 | An already active graphical session with bus address is necessary to
|
---|
[6ebcb8e] | 145 | run the tests.
|
---|
[d2b1e2e] | 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <para>
|
---|
| 149 | To install the <application>Python 2</application> module,
|
---|
| 150 | run the following command as the
|
---|
| 151 | <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <screen role="root"><userinput>make -C python2 install</userinput></screen>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | To install the <application>Python 3</application> module,
|
---|
| 158 | run the following command as the
|
---|
| 159 | <systemitem class="username">root</systemitem> user:
|
---|
| 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <screen role="root"><userinput>make -C python3 install</userinput></screen>
|
---|
| 163 |
|
---|
| 164 | </sect3>
|
---|
| 165 |
|
---|
| 166 | <sect3 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Programs</segtitle>
|
---|
| 171 | <segtitle>Installed Library</segtitle>
|
---|
| 172 | <segtitle>Installed Directories</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
| 175 | <seg>
|
---|
| 176 | None
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
[6d5ce50b] | 179 | /usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so
|
---|
[4a8fc81f] | 180 | and/or
|
---|
[27747668] | 181 | /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-35m-<arch>-linux-gnu.so
|
---|
[d2b1e2e] | 182 | </seg>
|
---|
| 183 | <seg>
|
---|
[6d5ce50b] | 184 | /usr/include/pygobject-3.0, and
|
---|
[d2b1e2e] | 185 | /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
|
---|
| 186 | /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
---|
| 187 | </seg>
|
---|
| 188 | </seglistitem>
|
---|
| 189 | </segmentedlist>
|
---|
| 190 |
|
---|
| 191 | </sect3>
|
---|
| 192 |
|
---|
| 193 | </sect2>
|
---|
[d01c61f] | 194 | <!-- End PyGObject -->
|
---|