glfs/general/prog/pycairo.xml
Pierre Labastie b39fa67586 Install .pc files and headers for pycairo
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20105 af4574ff-66df-0310-9fd7-8a98e5e911e0
2018-04-23 14:40:18 +00:00

156 lines
4.5 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 "7524f53b4aa947fbdd78fe185ed9a62d">
<!ENTITY pycairo-size "188 KB">
<!ENTITY pycairo-buildsize "5.2 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>
&lfs82_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">Optional</bridgehead>
<para role="optional">
<xref linkend="python2"/> and
<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-36m-x86_64-linux-gnu.so (python3)
</seg>
<seg>
/usr/lib/python&python2-majorver;/site-packages/cairo and
/usr/lib/python&python3-majorver;/site-packages/cairo
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!-- End PyCairo -->