Ignore:
Timestamp:
02/21/2019 07:45:05 AM (3 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 8.4, 9.0, 9.1, lazarus, qt5new, trunk, upgradedb, xry111/intltool, xry111/test-20220226
Children:
7e28f17d
Parents:
c9bc0628
Message:

Reinstate the Python 2 build of PyGobject3 for the 8.4 release

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21223 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/pygobject3.xml

    rc9bc0628 r2da3d572  
    7878      </para>
    7979
     80      <bridgehead renderas="sect5">Recommended</bridgehead>
     81      <para role="recommended">
     82        <xref linkend="python2"/> and
     83        <xref linkend="pycairo"/>
     84          (<application>Python 2</application> module)
     85      </para>
     86
    8087      <bridgehead renderas="sect5">Optional (for the tests)</bridgehead>
    8188      <para role="optional">
    82         <xref linkend="python2"/>,
    8389        <ulink url="https://pypi.python.org/pypi/pep8">pep8</ulink>,
    8490        <ulink url="https://pypi.python.org/pypi/pyflakes">pyflakes</ulink>, and
     
    95101      <title>Installation of PyGObject3</title>
    96102
     103      <note>
     104        <para>
     105          Both <application>Python 2</application> and
     106          <application>Python 3</application> modules can
     107          be built and installed without any conflicts.
     108        </para>
     109      </note>
     110
     111      <para>
     112        To build <application>PyGObject3</application> as a
     113        <application>Python 2</application> module, run the
     114        following commands:
     115      </para>
     116
     117<screen><userinput>mkdir python2                        &amp;&amp;
     118pushd python2                        &amp;&amp;
     119meson --prefix=/usr -Dpython=python2 &amp;&amp;
     120ninja                                &amp;&amp;
     121popd</userinput></screen>
     122
     123      <para>
     124        To test the results, issue: <command>ninja -C python2 test</command>.
     125        An already active graphical session with bus address is necessary to
     126        run the tests.
     127      </para>
     128
    97129      <para>
    98130        To build <application>PyGObject3</application> as a
     
    101133      </para>
    102134
    103 <screen><userinput>mkdir build                          &amp;&amp;
    104 cd build                             &amp;&amp;
     135<screen><userinput>mkdir python3                        &amp;&amp;
     136pushd python3                        &amp;&amp;
    105137meson --prefix=/usr -Dpython=python3 &amp;&amp;
    106 ninja</userinput></screen>
     138ninja                                &amp;&amp;
     139popd</userinput></screen>
    107140
    108141      <para>
    109         To test the results, issue: <command>ninja test</command>.
     142        To test the results, issue: <command>ninja -C python3 test</command>.
    110143        An already active graphical session with bus address is necessary to
    111144        run the tests.
     
    113146
    114147      <para>
    115         To install the module, run the following command as the
     148        To install the <application>Python 2</application> module,
     149        run the following command as the
    116150        <systemitem class="username">root</systemitem> user:
    117151      </para>
    118152
    119 <screen role="root"><userinput>ninja install</userinput></screen>
     153<screen role="root"><userinput>ninja -C python2 install</userinput></screen>
     154
     155      <para>
     156        To install the <application>Python 3</application> module,
     157        run the following command as the
     158        <systemitem class="username">root</systemitem> user:
     159      </para>
     160
     161<screen role="root"><userinput>ninja -C python3 install</userinput></screen>
    120162
    121163    </sect3>
     
    134176           </seg>
    135177          <seg>
     178            /usr/lib/python&python2-majorver;/site-packages/gi/_gi{,_cairo}.so and/or
    136179            /usr/lib/python&python3-majorver;/site-packages/gi/_gi{,_cairo}.cpython-37m-&lt;arch&gt;-linux-gnu.so
    137180           </seg>
    138181          <seg>
    139182            /usr/include/pygobject-3.0, and
     183            /usr/lib/python&python2-majorver;/site-packages/{gi,pygtkcompat} and/or
    140184            /usr/lib/python&python3-majorver;/site-packages/{gi,pygtkcompat}
    141185          </seg>
Note: See TracChangeset for help on using the changeset viewer.