2013-08-09 06:57:44 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2013-08-09 07:08:09 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<!ENTITY pygobject3-download-http
|
2018-09-28 04:50:26 +08:00
|
|
|
"&gnome-download-http;/pygobject/&gnome-minor-30;/pygobject-&pygobject3-version;.tar.xz">
|
2013-08-09 06:57:44 +08:00
|
|
|
<!ENTITY pygobject3-download-ftp
|
2018-09-28 04:50:26 +08:00
|
|
|
"&gnome-download-ftp;/pygobject/&gnome-minor-30;/pygobject-&pygobject3-version;.tar.xz">
|
|
|
|
<!ENTITY pygobject3-md5sum "77ba5f41a00d5c0cc22962a475f8de67">
|
|
|
|
<!ENTITY pygobject3-size "540 KB">
|
|
|
|
<!ENTITY pygobject3-buildsize "26 MB (both modules, with tests)">
|
2018-03-29 07:09:28 +08:00
|
|
|
<!ENTITY pygobject3-time "0.3 SBU (both modules, with tests)">
|
2013-08-09 06:57:44 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<!-- Begin PyGObject3 -->
|
|
|
|
<sect2 id="pygobject3" xreflabel="PyGObject-&pygobject3-version;">
|
|
|
|
|
|
|
|
<title>PyGObject-&pygobject3-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="pygobject3">
|
|
|
|
<primary sortas="a-PyGObject3">PyGObject3</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect3 role="package">
|
|
|
|
<title>Introduction to PyGObject3 Module</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>PyGObject3</application> provides
|
|
|
|
<application>Python</application> bindings to the GObject
|
|
|
|
class from <application>GLib</application>.
|
|
|
|
</para>
|
|
|
|
|
2018-08-20 11:08:15 +08:00
|
|
|
&lfs83_checked;
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&pygobject3-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&pygobject3-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &pygobject3-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &pygobject3-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &pygobject3-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &pygobject3-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">PyGObject3 Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect5">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="gobject-introspection"/> and
|
|
|
|
<xref linkend="pycairo"/>
|
2017-05-23 04:46:50 +08:00
|
|
|
(for <application>Python 2</application> and/or
|
|
|
|
<application>Python 3</application> bindings)
|
2013-08-09 06:57:44 +08:00
|
|
|
</para>
|
|
|
|
|
2015-06-16 21:25:00 +08:00
|
|
|
<bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink> and
|
|
|
|
<ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>
|
|
|
|
</para>
|
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/pygobject3"/>
|
|
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="installation">
|
|
|
|
<title>Installation of PyGObject3</title>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Both <application>Python 2</application> and
|
|
|
|
<application>Python 3</application> modules can
|
|
|
|
be built and installed without any conflicts.
|
|
|
|
</para>
|
|
|
|
</note>
|
2014-04-17 06:54:46 +08:00
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<para>
|
|
|
|
To build <application>PyGObject3</application> as the
|
|
|
|
<application>Python 2</application> module, run the
|
|
|
|
following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>mkdir python2 &&
|
|
|
|
pushd python2 &&
|
2018-09-28 04:50:26 +08:00
|
|
|
meson --prefix=/usr -Dpython=python2 .. &&
|
|
|
|
ninja &&
|
2013-08-09 06:57:44 +08:00
|
|
|
popd</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2018-09-28 04:50:26 +08:00
|
|
|
To test the results, issue: <command>ninja -C python2 test</command>.
|
2013-11-12 23:05:25 +08:00
|
|
|
An already active graphical session with bus address is necessary to
|
|
|
|
run the tests.
|
2013-08-09 06:57:44 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To build <application>PyGObject3</application> as the
|
|
|
|
<application>Python 3</application> module, run the
|
|
|
|
following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>mkdir python3 &&
|
|
|
|
pushd python3 &&
|
2018-09-28 04:50:26 +08:00
|
|
|
meson --prefix=/usr -Dpython=python3 &&
|
|
|
|
ninja &&
|
2013-08-09 06:57:44 +08:00
|
|
|
popd</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2018-09-28 04:50:26 +08:00
|
|
|
To test the results, issue: <command>ninja -C python3 test</command>.
|
2013-11-12 23:05:25 +08:00
|
|
|
An already active graphical session with bus address is necessary to
|
Update to pygobject-3.16.1.
Update to Gnome 3.16.1:
gsettings-desktop-schemas-3.16.1,
yelp-xsl-3.16.1,
gvfs-1.24.1,
gnome-desktop-3.16.1,
dconf-editor-3.16.1,
notification-daemon-3.16.1,
baobab-3.16.1,
cheese-3.16.1,
eog-3.16.1,
file-roller-3.16.1,
gnome-termina-3.16.1, and
gucharmap-3.16.1.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15836 af4574ff-66df-0310-9fd7-8a98e5e911e0
2015-04-16 06:43:10 +08:00
|
|
|
run the tests.
|
2013-08-09 06:57:44 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To install the <application>Python 2</application> module,
|
|
|
|
run the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2018-09-28 04:50:26 +08:00
|
|
|
<screen role="root"><userinput>ninja -C python2 install</userinput></screen>
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
To install the <application>Python 3</application> module,
|
|
|
|
run the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2018-09-28 04:50:26 +08:00
|
|
|
<screen role="root"><userinput>ninja -C python3 install</userinput></screen>
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-06-16 21:25:00 +08:00
|
|
|
/usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so
|
2014-03-28 18:10:16 +08:00
|
|
|
and/or
|
2015-10-27 20:33:21 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-35m-<arch>-linux-gnu.so
|
2013-08-09 06:57:44 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-06-16 21:25:00 +08:00
|
|
|
/usr/include/pygobject-3.0, and
|
2013-08-09 06:57:44 +08:00
|
|
|
/usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
|
|
|
|
/usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
2013-08-09 07:08:09 +08:00
|
|
|
<!-- End PyGObject -->
|