Author: krejzi Date: Sun Jul 14 11:06:15 2013 New Revision: 11415 Log: Python modules updates.
Modified: trunk/BOOK/general.ent trunk/BOOK/general/prog/python-modules.xml trunk/BOOK/introduction/welcome/changelog.xml Modified: trunk/BOOK/general.ent ============================================================================== --- trunk/BOOK/general.ent Sun Jul 14 09:59:19 2013 (r11414) +++ trunk/BOOK/general.ent Sun Jul 14 11:06:15 2013 (r11415) @@ -425,11 +425,12 @@ <!ENTITY notify-python-version "0.1.1"> <!ENTITY pyxml-version "0.8.4"> <!ENTITY py2cairo-version "1.10.0"> +<!ENTITY pycairo-version "1.10.0"> <!ENTITY pygobject2-version "2.28.6"> -<!ENTITY pygobject3-version "3.4.2"> +<!ENTITY pygobject3-version "3.8.2"> <!ENTITY pygtk-version "2.24.0"> <!ENTITY pygtksourceview-version "2.10.1"> -<!ENTITY pyatspi2-version "2.6.0"> +<!ENTITY pyatspi2-version "2.8.0"> <!ENTITY pyrex-version "0.9.9"> <!ENTITY pyxdg-version "0.23"> Modified: trunk/BOOK/general/prog/python-modules.xml ============================================================================== --- trunk/BOOK/general/prog/python-modules.xml Sun Jul 14 09:59:19 2013 (r11414) +++ trunk/BOOK/general/prog/python-modules.xml Sun Jul 14 11:06:15 2013 (r11415) @@ -20,6 +20,14 @@ <!ENTITY py2cairo-buildsize "3.6 MB"> <!ENTITY py2cairo-time "less than 0.1 SBU"> + <!ENTITY pycairo-download-http + "http://cairographics.org/releases/pycairo-&pycairo-version;.tar.bz2"> + <!ENTITY pycairo-download-ftp " "> + <!ENTITY pycairo-md5sum "e6fd3f2f1e6a72e0db0868c4985669c5"> + <!ENTITY pycairo-size "244 KB"> + <!ENTITY pycairo-buildsize "3.0 MB"> + <!ENTITY pycairo-time "less than 0.1 SBU"> + <!ENTITY pygobject2-download-http "&gnome-download-http;/pygobject/2.28/pygobject-&pygobject2-version;.tar.xz"> <!ENTITY pygobject2-download-ftp @@ -30,13 +38,13 @@ <!ENTITY pygobject2-time "0.2 SBU"> <!ENTITY pygobject3-download-http - "&gnome-download-http;/pygobject/3.4/pygobject-&pygobject3-version;.tar.xz"> + "&gnome-download-http;/pygobject/3.8/pygobject-&pygobject3-version;.tar.xz"> <!ENTITY pygobject3-download-ftp - "&gnome-download-ftp;/pygobject/3.4/pygobject-&pygobject3-version;.tar.xz"> - <!ENTITY pygobject3-md5sum "a17b3897507f179d643e02f5abf111ac"> - <!ENTITY pygobject3-size "604 KB"> - <!ENTITY pygobject3-buildsize "16 MB"> - <!ENTITY pygobject3-time "0.1 SBU"> + "&gnome-download-ftp;/pygobject/3.8/pygobject-&pygobject3-version;.tar.xz"> + <!ENTITY pygobject3-md5sum "607976fa21cee004cae12795a88d2675"> + <!ENTITY pygobject3-size "640 KB"> + <!ENTITY pygobject3-buildsize "30 MB"> + <!ENTITY pygobject3-time "0.3 SBU"> <!ENTITY pygtk-download-http "&gnome-download-http;/pygtk/2.24/pygtk-&pygtk-version;.tar.bz2"> @@ -48,12 +56,12 @@ <!ENTITY pygtk-time "0.7 SBU"> <!ENTITY pyatspi2-download-http - "&gnome-download-http;/pyatspi/2.6/pyatspi-&pyatspi2-version;.tar.xz"> + "&gnome-download-http;/pyatspi/2.8/pyatspi-&pyatspi2-version;.tar.xz"> <!ENTITY pyatspi2-download-ftp - "&gnome-download-ftp;/pyatspi/2.6/pyatspi-&pyatspi2-version;.tar.xz"> - <!ENTITY pyatspi2-md5sum "95c48cae83d1f6d6cd13615df14124e5"> + "&gnome-download-ftp;/pyatspi/2.8/pyatspi-&pyatspi2-version;.tar.xz"> + <!ENTITY pyatspi2-md5sum "930f51c62cca60ebdf90f735d26385b2"> <!ENTITY pyatspi2-size "284 KB"> - <!ENTITY pyatspi2-buildsize "3.5 MB"> + <!ENTITY pyatspi2-buildsize "5.0 MB"> <!ENTITY pyatspi2-time "less than 0.1 SBU"> <!ENTITY pyrex-download-http @@ -103,6 +111,11 @@ </listitem> <listitem> <para> + <xref linkend="pycairo"/> + </para> + </listitem> + <listitem> + <para> <xref linkend="pygobject2"/> </para> </listitem> @@ -377,6 +390,120 @@ </sect2> <!-- End Py2cairo --> + <!-- Begin PyCairo --> + <sect2 id="pycairo" xreflabel="PyCairo-&pycairo-version;"> + + <title>PyCairo-&pycairo-version;</title> + + <indexterm zone="pycairo"> + <primary sortas="a-PyCairo">PyCairo</primary> + </indexterm> + + <sect3 role="package"> + <title>Introduction to PyCairo Module</title> + + <para> + Pycairo provides <application>Python 3</application> bindings to + <application>Cairo</application>. + </para> + + &lfs73_checked; + + <bridgehead renderas="sect4">Package Information</bridgehead> + <itemizedlist spacing="compact"> + <listitem> + <para> + Download (HTTP): <ulink url="&pycairo-download-http;"/> + </para> + </listitem> + <listitem> + <para> + Download (FTP): <ulink url="&pycairo-download-ftp;"/> + </para> + </listitem> + <listitem> + <para> + Download MD5 sum: &pycairo-md5sum; + </para> + </listitem> + <listitem> + <para> + Download size: &pycairo-size; + </para> + </listitem> + <listitem> + <para> + Estimated disk space required: &pycairo-buildsize; + </para> + </listitem> + <listitem> + <para> + Estimated build time: &pycairo-time; + </para> + </listitem> + </itemizedlist> + + <bridgehead renderas="sect4">PyCairo Dependencies</bridgehead> + + <bridgehead renderas="sect5">Required</bridgehead> + <para role="required"> + <xref linkend="cairo"/> and + <xref linkend="python3"/> + </para> + + <para condition="html" role="usernotes"> + User Notes: <ulink url="&blfs-wiki;/pycairo"/> + </para> + </sect3> + + <sect3 role="installation"> + <title>Installation of PyCairo</title> + + <para> + Install <application>PyCairo</application> by running the following + commands: + </para> + +<screen><userinput>PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr && +./waf build</userinput></screen> + + <para> + This package does not come with a test suite. + </para> + + <para> + Now, as the <systemitem class="username">root</systemitem> user: + </para> + +<screen role="root"><userinput>./waf install</userinput></screen> + + </sect3> + + <sect3 role="content"> + <title>Contents</title> + + <segmentedlist> + <segtitle>Installed Programs</segtitle> + <segtitle>Installed Library</segtitle> + <segtitle>Installed Directory</segtitle> + + <seglistitem> + <seg> + None + </seg> + <seg> + None + </seg> + <seg> + /usr/include/pycairo and + /usr/lib/python&python3-majorver;/site-packages/cairo + </seg> + </seglistitem> + </segmentedlist> + </sect3> + </sect2> + <!-- End PyCairo --> + <!-- Begin PyGObject2 --> <sect2 id="pygobject2" xreflabel="PyGObject-&pygobject2-version;"> @@ -540,19 +667,19 @@ <title>PyGObject-&pygobject3-version;</title> <indexterm zone="pygobject3"> - <primary sortas="a-PyGObject">PyGObject</primary> + <primary sortas="a-PyGObject3">PyGObject3</primary> </indexterm> <sect3 role="package"> - <title>Introduction to PyGObject Module</title> + <title>Introduction to PyGObject3 Module</title> <para> - PyGObject-&pygobject3-version; provides - <application>Python 2</application> bindings to the GObject + <application>PyGObject3</application> provides + <application>Python</application> bindings to the GObject class from <application>GLib</application>. </para> - &lfs72_checked; + &lfs73_checked; <bridgehead renderas="sect4">Package Information</bridgehead> <itemizedlist spacing="compact"> @@ -588,17 +715,15 @@ </listitem> </itemizedlist> - <bridgehead renderas="sect4">PyGObject Dependencies</bridgehead> + <bridgehead renderas="sect4">PyGObject3 Dependencies</bridgehead> <bridgehead renderas="sect5">Required</bridgehead> <para role="required"> <xref linkend="gobject-introspection"/> and <xref linkend="py2cairo"/> - </para> - - <bridgehead renderas="sect5">Optional</bridgehead> - <para role="optional"> - <xref linkend="libxslt"/> (to Build Documentation) + (for <application>Python 2</application> bindings) and/or + <xref linkend="pycairo"/> + (for <application>Python 3</application> bindings) </para> <para condition="html" role="usernotes"> @@ -607,37 +732,64 @@ </sect3> <sect3 role="installation"> - <title>Installation of PyGObject</title> + <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> - Install <application>PyGObject</application> by running the following - commands: + To build <application>PyGObject3</application> as the + <application>Python 2</application> module, run the + following command: </para> -<screen><userinput>./configure --prefix=/usr && -make</userinput></screen> +<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 check</command>. + To test the results, issue: <command>make -C python2 check</command>. </para> <para> - Now, as the <systemitem class="username">root</systemitem> user: + To build <application>PyGObject3</application> as the + <application>Python 3</application> module, run the + following command: </para> -<screen role="root"><userinput>make install</userinput></screen> +<screen><userinput>mkdir python3 && +pushd python3 && +../configure --prefix=/usr --with-python=/usr/bin/python3 && +make && +popd</userinput></screen> - </sect3> + <para> + To test the results, issue: <command>make -C python3 check</command>. + </para> - <sect3 role="commands"> - <title>Command Explanations</title> + <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> - <parameter>--disable-docs</parameter>: This option disables the - rebuilding of the html documentation if <xref linkend="libxslt"/> is - installed. + 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"> @@ -653,11 +805,13 @@ None </seg> <seg> - libpyglib-gi-2.0-python.so + libpyglib-gi-2.0-python.so and/or + libpyglib-gi-2.0-python3.so </seg> <seg> /usr/include/pygobject-3.0 and - /usr/lib/python&python2-majorver;/site-packages/gi + /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or + /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat} </seg> </seglistitem> </segmentedlist> @@ -866,19 +1020,19 @@ <!-- End PyGTK --> <!-- Begin pyatspi2 --> - <sect2 id="pyatspi2" xreflabel="pyatspi2-&pyatspi2-version;"> + <sect2 id="pyatspi2" xreflabel="PyAtSpi2-&pyatspi2-version;"> - <title>pyatspi2-&pyatspi2-version;</title> + <title>PyAtSpi2-&pyatspi2-version;</title> <indexterm zone="pyatspi2"> - <primary sortas="a-pyatspi2">pyatspi2</primary> + <primary sortas="a-PyAtSpi2">PyAtSpi2</primary> </indexterm> <sect3 role="package"> - <title>Introduction to pyatspi2</title> + <title>Introduction to PyAtSpi2</title> <para> - The <application>pyatspi2</application> package contains Python2 + The <application>PyAtSpi2</application> package contains Python2 bindings for the core components of GNOME Accessibility. </para> @@ -918,7 +1072,7 @@ </listitem> </itemizedlist> - <bridgehead renderas="sect4">pyatspi2 Dependencies</bridgehead> + <bridgehead renderas="sect4">PyAtSpi2 Dependencies</bridgehead> <bridgehead renderas="sect5">Required</bridgehead> <para role="required"> @@ -937,25 +1091,59 @@ </sect3> <sect3 role="installation"> - <title>Installation of pyatspi2</title> + <title>Installation of PyAtSpi2</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> - Install <application>pyatspi2</application> by running the following - commands: + To build <application>PyAtSpi2</application> as the + <application>Python 2</application> module, run the + following command: </para> -<screen><userinput>./configure --prefix=/usr && -make</userinput></screen> +<screen><userinput>mkdir python2 && +pushd python2 && +../configure --prefix=/usr --with-python=/usr/bin/python && +make && +popd</userinput></screen> - <para> - This package does not come with a testsuite. - </para> + <para> + To build <application>PyAtSpi2</application> as the + <application>Python 3</application> module, run the + following command: + </para> - <para> - Now, as the <systemitem class="username">root</systemitem> user: - </para> +<screen><userinput>mkdir python3 && +pushd python3 && +../configure --prefix=/usr --with-python=/usr/bin/python3 && +make && +popd</userinput></screen> -<screen role="root"><userinput>make install</userinput></screen> + <para> + This package does not come with a testsuite. + </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> @@ -975,7 +1163,8 @@ None </seg> <seg> - /usr/lib/python&python2-majorver;/site-packages/pyatspi + /usr/lib/python&python2-majorver;/site-packages/pyatspi and/or + /usr/lib/python&python3-majorver;/site-packages/pyatspi </seg> </seglistitem> </segmentedlist> Modified: trunk/BOOK/introduction/welcome/changelog.xml ============================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 14 09:59:19 2013 (r11414) +++ trunk/BOOK/introduction/welcome/changelog.xml Sun Jul 14 11:06:15 2013 (r11415) @@ -47,6 +47,15 @@ <para>July 14th, 2013</para> <itemizedlist> <listitem> + <para>[krejzi] - Added PyCairo 1.10.0, a Python 3 module.</para> + </listitem> + <listitem> + <para>[krejzi] - PyGObject 3.8.2.</para> + </listitem> + <listitem> + <para>[krejzi] - PyAtSpi2 2.8.0.</para> + </listitem> + <listitem> <para>[igor] - VLC: fix compilation with FLAC-1.3.0.</para> </listitem> <listitem> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
