mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
932eaaeacb
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23558 af4574ff-66df-0310-9fd7-8a98e5e911e0
145 lines
4.2 KiB
XML
145 lines
4.2 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 pycairo2-download-http "https://github.com/pygobject/pycairo/releases/download/v&pycairo2-version;/pycairo-&pycairo2-version;.tar.gz">
|
|
<!ENTITY pycairo2-download-ftp " ">
|
|
<!ENTITY pycairo2-md5sum "be2ba51f234270dec340f28f1695a95e">
|
|
<!ENTITY pycairo2-size "196 KB">
|
|
<!ENTITY pycairo2-buildsize "2.3 MB">
|
|
<!ENTITY pycairo2-time "less than 0.1 SBU">
|
|
]>
|
|
|
|
<!-- Begin PyCairo -->
|
|
<sect2 id="pycairo2" xreflabel="PyCairo-&pycairo2-version;">
|
|
|
|
<title>PyCairo-&pycairo2-version;</title>
|
|
|
|
<indexterm zone="pycairo2">
|
|
<primary sortas="a-PyCairo2">PyCairo2</primary>
|
|
</indexterm>
|
|
|
|
<sect3 role="package">
|
|
<title>Introduction to PyCairo for Python2 Module</title>
|
|
|
|
<para>
|
|
This version of
|
|
PyCairo provides <application>Python2</application> bindings to
|
|
<application>Cairo</application>.
|
|
</para>
|
|
|
|
&lfs10_checked;
|
|
<!-- Does not use gcc -->
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&pycairo2-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&pycairo2-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &pycairo2-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &pycairo2-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &pycairo2-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &pycairo2-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect4">PyCairo Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect5">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="cairo"/> and
|
|
<xref linkend="python2"/>
|
|
</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>
|
|
|
|
<note>
|
|
<para>
|
|
This version of PyCairo is only retained for packages such as <xref
|
|
linkend="gimp"/> which is stuck on Python2 until Gimp-3 is released.
|
|
</para>
|
|
</note>
|
|
|
|
<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 &&
|
|
python2 setup.py install_pycairo_header &&
|
|
python2 setup.py install_pkgconfig</userinput></screen>
|
|
</sect3>
|
|
|
|
<sect3 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
<!--_cairo.so (python2) and -->
|
|
_cairo.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/pycairo,
|
|
/usr/lib/python&python2-majorver;/site-packages/cairo,
|
|
/usr/lib/python&python2-majorver;/site-packages/pycairo-&pycairo2-version;-py&python2-majorver;.egg,
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
</sect3>
|
|
</sect2>
|
|
<!-- End PyCairo -->
|