Author: pierre
Date: Wed Feb 20 23:45:05 2019
New Revision: 21223
Log:
Reinstate the Python 2 build of PyGobject3 for the 8.4 release
Modified:
trunk/BOOK/general/prog/pygobject3.xml
Modified: trunk/BOOK/general/prog/pygobject3.xml
==============================================================================
--- trunk/BOOK/general/prog/pygobject3.xml Wed Feb 20 23:18:08 2019
(r21222)
+++ trunk/BOOK/general/prog/pygobject3.xml Wed Feb 20 23:45:05 2019
(r21223)
@@ -77,9 +77,15 @@
(<application>Python 3</application> module)
</para>
+ <bridgehead renderas="sect5">Recommended</bridgehead>
+ <para role="recommended">
+ <xref linkend="python2"/> and
+ <xref linkend="pycairo"/>
+ (<application>Python 2</application> module)
+ </para>
+
<bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
<para role="optional">
- <xref linkend="python2"/>,
<ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
<ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>,
and
<ulink url="https://pypi.python.org/pypi/pytest">pytest</ulink>
@@ -94,29 +100,65 @@
<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>
+ To build <application>PyGObject3</application> as a
+ <application>Python 2</application> module, run the
+ following commands:
+ </para>
+
+<screen><userinput>mkdir python2 &&
+pushd python2 &&
+meson --prefix=/usr -Dpython=python2 &&
+ninja &&
+popd</userinput></screen>
+
+ <para>
+ To test the results, issue: <command>ninja -C python2 test</command>.
+ An already active graphical session with bus address is necessary to
+ run the tests.
+ </para>
+
<para>
To build <application>PyGObject3</application> as a
<application>Python 3</application> module, run the
following commands:
</para>
-<screen><userinput>mkdir build &&
-cd build &&
+<screen><userinput>mkdir python3 &&
+pushd python3 &&
meson --prefix=/usr -Dpython=python3 &&
-ninja</userinput></screen>
+ninja &&
+popd</userinput></screen>
<para>
- To test the results, issue: <command>ninja test</command>.
+ To test the results, issue: <command>ninja -C python3 test</command>.
An already active graphical session with bus address is necessary to
run the tests.
</para>
<para>
- To install the module, run the following command as the
+ 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>ninja -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>ninja install</userinput></screen>
+<screen role="root"><userinput>ninja -C python3 install</userinput></screen>
</sect3>
@@ -133,10 +175,12 @@
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-37m-<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>
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page