[d2b1e2e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[5fe69261] | 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
[d2b1e2e] | 5 | %general-entities;
|
---|
| 6 |
|
---|
[7979906] | 7 | <!ENTITY pycairo-download-http "https://github.com/pygobject/pycairo/releases/download/v&pycairo-version;/pycairo-&pycairo-version;.tar.gz">
|
---|
[d2b1e2e] | 8 | <!ENTITY pycairo-download-ftp " ">
|
---|
[3810a5e] | 9 | <!ENTITY pycairo-md5sum "7669cdc70111d01ba6faecd65d8cdbf6">
|
---|
[4454113] | 10 | <!ENTITY pycairo-size "340 KB">
|
---|
| 11 | <!ENTITY pycairo-buildsize "3.0 MB">
|
---|
[8c6cd323] | 12 | <!ENTITY pycairo-time "less than 0.1 SBU">
|
---|
[d2b1e2e] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin PyCairo -->
|
---|
| 16 | <sect2 id="pycairo" xreflabel="PyCairo-&pycairo-version;">
|
---|
| 17 |
|
---|
| 18 | <title>PyCairo-&pycairo-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="pycairo">
|
---|
| 21 | <primary sortas="a-PyCairo">PyCairo</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to PyCairo Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
[7979906] | 28 | PyCairo provides <application>Python</application> bindings to
|
---|
[d2b1e2e] | 29 | <application>Cairo</application>.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[30c1c72] | 32 | &lfs120_checked;
|
---|
[d2b1e2e] | 33 |
|
---|
| 34 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&pycairo-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&pycairo-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &pycairo-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &pycairo-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &pycairo-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &pycairo-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect4">PyCairo Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 71 | <para role="required">
|
---|
[8558044] | 72 | <xref linkend="cairo"/>
|
---|
[d2b1e2e] | 73 | </para>
|
---|
| 74 |
|
---|
[f9bf7d4a] | 75 | <bridgehead renderas="sect5">Optional</bridgehead>
|
---|
| 76 | <para role="optional">
|
---|
[db21651] | 77 | <ulink url="https://hypothesis.readthedocs.io">Hypothesis</ulink> and
|
---|
[8b819c5] | 78 | <xref linkend="pytest"/> (for tests)
|
---|
[f9bf7d4a] | 79 | </para>
|
---|
| 80 |
|
---|
[d2b1e2e] | 81 | </sect3>
|
---|
| 82 |
|
---|
| 83 | <sect3 role="installation">
|
---|
| 84 | <title>Installation of PyCairo</title>
|
---|
| 85 |
|
---|
[a6ea526] | 86 | <note>
|
---|
| 87 | <para>
|
---|
| 88 | The current version of pycairo no longer builds the Python2 module.
|
---|
[cb5164ad] | 89 | If you need that module for packages such as <xref linkend="gimp"/>, use
|
---|
[0c2e5325] | 90 | <xref linkend="pycairo2"/>
|
---|
[a6ea526] | 91 | </para>
|
---|
| 92 | </note>
|
---|
| 93 |
|
---|
[d2b1e2e] | 94 | <para>
|
---|
[0c2e5325] | 95 | Install <application>PyCairo</application> for Python3 by
|
---|
[77deb22e] | 96 | running the following commands:
|
---|
[d2b1e2e] | 97 | </para>
|
---|
| 98 |
|
---|
[f179b24] | 99 | <screen><userinput>mkdir build &&
|
---|
| 100 | cd build &&
|
---|
| 101 |
|
---|
[91318eb] | 102 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[f179b24] | 103 | ninja</userinput></screen>
|
---|
| 104 |
|
---|
[d2b1e2e] | 105 | <para>
|
---|
[f179b24] | 106 | To run the tests, this package requires the optional pytest module. If
|
---|
[db21651] | 107 | it is installed, run the tests by running <command>ninja test</command>.
|
---|
[b9a11e66] | 108 | <!--The <emphasis>test_surface.py</emphasis> test has a failure.-->
|
---|
[d2b1e2e] | 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[f179b24] | 115 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 116 |
|
---|
[d2b1e2e] | 117 | </sect3>
|
---|
| 118 |
|
---|
| 119 | <sect3 role="content">
|
---|
| 120 | <title>Contents</title>
|
---|
| 121 |
|
---|
| 122 | <segmentedlist>
|
---|
[a6ea526] | 123 | <segtitle>Installed Program</segtitle>
|
---|
| 124 | <segtitle>Installed Library</segtitle>
|
---|
[7979906] | 125 | <segtitle>Installed Directories</segtitle>
|
---|
[d2b1e2e] | 126 |
|
---|
| 127 | <seglistitem>
|
---|
| 128 | <seg>
|
---|
| 129 | None
|
---|
| 130 | </seg>
|
---|
| 131 | <seg>
|
---|
[72c62e4] | 132 | None
|
---|
[d2b1e2e] | 133 | </seg>
|
---|
| 134 | <seg>
|
---|
[02790b1] | 135 | /usr/include/pycairo,
|
---|
[72c62e4] | 136 | /usr/lib/python&python3-majorver;/site-packages/cairo, and
|
---|
| 137 | /usr/lib/python&python3-majorver;/site-packages/pycairo-&pycairo-version;.egg-info
|
---|
[d2b1e2e] | 138 | </seg>
|
---|
| 139 | </seglistitem>
|
---|
| 140 | </segmentedlist>
|
---|
| 141 | </sect3>
|
---|
[4c24eb0a] | 142 |
|
---|
[d2b1e2e] | 143 | </sect2>
|
---|