mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
07975289a9
Update to gobject-introspection-1.50.0 Update to gsettings-desktop-schemas-3.22.0 Update to pygobject-3.22.0 Update to setuptools-27.2.0 Update to vala-0.34.0 Add a comment to several python modules about DESTDIR installs git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17783 af4574ff-66df-0310-9fd7-8a98e5e911e0
195 lines
6.0 KiB
XML
195 lines
6.0 KiB
XML
<?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;
|
|
|
|
<!ENTITY pygobject3-download-http
|
|
"&gnome-download-http;/pygobject/&gnome-minor-22;/pygobject-&pygobject3-version;.tar.xz">
|
|
<!ENTITY pygobject3-download-ftp
|
|
"&gnome-download-ftp;/pygobject/&gnome-minor-22;/pygobject-&pygobject3-version;.tar.xz">
|
|
<!ENTITY pygobject3-md5sum "ed4117ed5d554d25fd7718807fbf819f">
|
|
<!ENTITY pygobject3-size "740 KB">
|
|
<!ENTITY pygobject3-buildsize "70 MB (both modules, with tests)">
|
|
<!ENTITY pygobject3-time "0.4 SBU (both modules, with tests)">
|
|
]>
|
|
|
|
<!-- 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>
|
|
|
|
&lfs7a_checked;
|
|
|
|
<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="py2cairo"/>
|
|
(for <application>Python 2</application> bindings) and/or
|
|
<xref linkend="pycairo"/>
|
|
(for <application>Python 3</application> bindings)
|
|
</para>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
<!--
|
|
<para>
|
|
If you wish to run the test suite, optionally use the following
|
|
command to fix one test:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i '/d =.*MUSIC/d'
|
|
tests/test_glib.py</userinput></screen>-->
|
|
|
|
<para>
|
|
To build <application>PyGObject3</application> as the
|
|
<application>Python 2</application> module, run the
|
|
following commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir python2 &&
|
|
pushd python2 &&
|
|
../configure --prefix=/usr --with-python=/usr/bin/python &&
|
|
make &&
|
|
popd</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make -C python2 check</command>.
|
|
An already active graphical session with bus address is necessary to
|
|
run the tests.
|
|
</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 &&
|
|
../configure --prefix=/usr --with-python=/usr/bin/python3 &&
|
|
make &&
|
|
popd</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make -C python3 check</command>.
|
|
An already active graphical session with bus address is necessary to
|
|
run the tests.
|
|
</para>
|
|
|
|
<para>
|
|
To install the <application>Python 2</application> module,
|
|
run the following command as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make -C python2 install</userinput></screen>
|
|
|
|
<para>
|
|
To install the <application>Python 3</application> module,
|
|
run the following command as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make -C python3 install</userinput></screen>
|
|
|
|
</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>
|
|
/usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so
|
|
and/or
|
|
/usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-35m-<arch>-linux-gnu.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/pygobject-3.0, and
|
|
/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>
|
|
<!-- End PyGObject -->
|