glfs/general/prog/pycairo.xml
Bruce Dubbs 8c6cd32398 Update to sysstat-12.1.4.
Update to pygobject-3.32.1 (Python Module). 
Update to libdrm-2.4.98. 
Update to pycairo-1.18.1 (Python Module). 
Update to nghttp2-1.38.0. 



git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21496 af4574ff-66df-0310-9fd7-8a98e5e911e0
2019-04-22 14:06:07 +00:00

164 lines
4.9 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 pycairo-download-http "https://github.com/pygobject/pycairo/releases/download/v&pycairo-version;/pycairo-&pycairo-version;.tar.gz">
<!ENTITY pycairo-download-ftp " ">
<!ENTITY pycairo-md5sum "7610da8a40a7bed548991aa3416431d1">
<!ENTITY pycairo-size "196 KB">
<!ENTITY pycairo-buildsize "5.8 MB">
<!ENTITY pycairo-time "less than 0.1 SBU">
]>
<!-- 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</application> bindings to
<application>Cairo</application>.
</para>
&lfs84_checked;
<!-- Does not use gcc -->
<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"/>
</para>
<bridgehead renderas="sect5">Recommended</bridgehead>
<para role="recommended">
<xref linkend="python2"/> (<xref role="nodep" linkend="pygtk"/>
can only use <application>Python 2</application>)
</para>
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<ulink url="https://hypothesis.readthedocs.io">Hypothesis</ulink>
(for tests)
</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> for Python2 by running
the following commands:
</para>
<screen><userinput>python2 setup.py 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>python2 setup.py install --optimize=1 &amp;&amp;
python2 setup.py install_pycairo_header &amp;&amp;
python2 setup.py install_pkgconfig</userinput></screen>
<para>
Install <application>PyCairo</application> for Python3 by running
the following commands:
</para>
<screen><userinput>python3 setup.py 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>python3 setup.py install --optimize=1 &amp;&amp;
python3 setup.py install_pycairo_header &amp;&amp;
python3 setup.py install_pkgconfig</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
_cairo.so (python2) and
_cairo.cpython-37m-x86_64-linux-gnu.so (python3)
</seg>
<seg>
/usr/include/pycairo,
/usr/lib/python&python2-majorver;/site-packages/cairo
/usr/lib/python&python2-majorver;/site-packages/pycairo-&pycairo-version;-py&python2-majorver;.egg,
/usr/lib/python&python3-majorver;/site-packages/cairo , and
/usr/lib/python&python3-majorver;/site-packages/pycairo-&pycairo-version;-py&python3-majorver;.egg
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!-- End PyCairo -->