2013-08-09 06:57:44 +08:00
|
|
|
<?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;
|
|
|
|
|
2017-05-23 04:46:50 +08:00
|
|
|
<!ENTITY pycairo-download-http "https://github.com/pygobject/pycairo/releases/download/v&pycairo-version;/pycairo-&pycairo-version;.tar.gz">
|
2013-08-09 06:57:44 +08:00
|
|
|
<!ENTITY pycairo-download-ftp " ">
|
2020-03-03 03:38:26 +08:00
|
|
|
<!ENTITY pycairo-md5sum "59bc5c5d1debc3af0f6791af9d612551">
|
|
|
|
<!ENTITY pycairo-size "204 KB">
|
2020-01-25 07:58:07 +08:00
|
|
|
<!ENTITY pycairo-buildsize "3.7 MB">
|
2019-04-22 22:06:07 +08:00
|
|
|
<!ENTITY pycairo-time "less than 0.1 SBU">
|
2013-08-09 06:57:44 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<!-- 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>
|
2017-05-23 04:46:50 +08:00
|
|
|
PyCairo provides <application>Python</application> bindings to
|
2013-08-09 06:57:44 +08:00
|
|
|
<application>Cairo</application>.
|
|
|
|
</para>
|
|
|
|
|
2020-02-17 07:15:05 +08:00
|
|
|
&lfs91_checked;
|
2017-05-23 04:46:50 +08:00
|
|
|
<!-- Does not use gcc -->
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
<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">
|
2017-10-16 02:23:25 +08:00
|
|
|
<xref linkend="cairo"/>
|
2013-08-09 06:57:44 +08:00
|
|
|
</para>
|
|
|
|
|
2017-07-15 01:55:26 +08:00
|
|
|
<bridgehead renderas="sect5">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<ulink url="https://hypothesis.readthedocs.io">Hypothesis</ulink>
|
|
|
|
(for tests)
|
|
|
|
</para>
|
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/pycairo"/>
|
|
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="installation">
|
|
|
|
<title>Installation of PyCairo</title>
|
|
|
|
|
2020-01-25 07:58:07 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
The current version of pycairo no longer builds the Python2 module.
|
2020-03-27 09:35:03 +08:00
|
|
|
If you need that module for packages such as <xref linkend="gimp"/>, use
|
2020-02-14 07:23:59 +08:00
|
|
|
<xref linkend="pycairo2"/>
|
2020-01-25 07:58:07 +08:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2013-08-09 06:57:44 +08:00
|
|
|
<para>
|
2020-02-14 07:23:59 +08:00
|
|
|
Install <application>PyCairo</application> for Python3 by
|
2019-05-22 00:19:04 +08:00
|
|
|
running the following commands:
|
2013-08-09 06:57:44 +08:00
|
|
|
</para>
|
|
|
|
|
2020-01-25 07:58:07 +08:00
|
|
|
<screen><userinput>python3 setup.py build</userinput></screen>
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2020-01-25 07:58:07 +08:00
|
|
|
<screen role="root"><userinput>python3 setup.py install --optimize=1 &&
|
2019-05-29 21:10:19 +08:00
|
|
|
python3 setup.py install_pycairo_header &&
|
|
|
|
python3 setup.py install_pkgconfig</userinput></screen>
|
2019-05-22 00:19:04 +08:00
|
|
|
<!-- Seems that install does the following too
|
2018-04-23 22:40:18 +08:00
|
|
|
python2 setup.py install_pycairo_header &&
|
2019-05-22 00:19:04 +08:00
|
|
|
python2 setup.py install_pkgconfig</userinput></screen>-->
|
2013-08-09 06:57:44 +08:00
|
|
|
|
2020-01-25 07:58:07 +08:00
|
|
|
<!-- Python2 is no longer supported
|
|
|
|
python2 setup.py install - -optimize=1 &&
|
|
|
|
python2 setup.py install_pycairo_header &&
|
|
|
|
python2 setup.py install_pkgconfig &&-->
|
2013-08-09 06:57:44 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2020-01-25 07:58:07 +08:00
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2017-05-23 04:46:50 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2013-08-09 06:57:44 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2020-01-25 07:58:07 +08:00
|
|
|
<!--_cairo.so (python2) and -->
|
2020-03-16 10:17:27 +08:00
|
|
|
_cairo.&python3-lib-suffix;.so
|
2013-08-09 06:57:44 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2019-01-12 17:53:54 +08:00
|
|
|
/usr/include/pycairo,
|
2020-01-25 07:58:07 +08:00
|
|
|
<!-- /usr/lib/python&python2-majorver;/site-packages/cairo,
|
2019-01-12 18:22:08 +08:00
|
|
|
/usr/lib/python&python2-majorver;/site-packages/pycairo-&pycairo-version;-py&python2-majorver;.egg,
|
2020-01-25 07:58:07 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/cairo--> and
|
2019-01-12 18:22:08 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/pycairo-&pycairo-version;-py&python3-majorver;.egg
|
2013-08-09 06:57:44 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
2013-09-04 03:08:19 +08:00
|
|
|
<!-- End PyCairo -->
|