source: archive/py2cairo.xml

trunk
Last change on this file was 8b819c5, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Reference book's pytest instead of external

Note that for pycairo2, I am not sure pytest can be built for python2.

  • Property mode set to 100644
File size: 4.0 KB
Line 
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" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY py2cairo-download-http
8 "http://cairographics.org/releases/py2cairo-&py2cairo-version;.tar.bz2">
9 <!ENTITY py2cairo-download-ftp " ">
10 <!ENTITY py2cairo-md5sum "20337132c4ab06c1146ad384d55372c5">
11 <!ENTITY py2cairo-size "400 KB">
12 <!ENTITY py2cairo-buildsize "3.6 MB">
13 <!ENTITY py2cairo-time "less than 0.1 SBU">
14]>
15
16 <!-- Begin Py2cairo -->
17 <sect2 id="py2cairo" xreflabel="Py2cairo-&py2cairo-version;">
18
19 <title>Py2cairo-&py2cairo-version;</title>
20
21 <indexterm zone="py2cairo">
22 <primary sortas="a-Py2cairo">Py2cairo</primary>
23 </indexterm>
24
25 <sect3 role="package">
26 <title>Introduction to Py2cairo Module</title>
27
28 <para>
29 Py2cairo provides <application>Python 2</application> bindings to
30 <application>Cairo</application>.
31 </para>
32
33 &lfs80_checked;
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&py2cairo-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&py2cairo-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &py2cairo-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &py2cairo-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &py2cairo-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &py2cairo-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">Py2cairo Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 <xref linkend="python2"/> and
74 <xref linkend="cairo"/>
75 </para>
76
77 <bridgehead renderas="sect5">Optional</bridgehead>
78 <para role="optional">
79 <!--TODO built for python2? -->
80 <ulink url="http://pytest.org">pytest</ulink>
81 </para>
82
83 <para condition="html" role="usernotes">
84 User Notes: <ulink url="&blfs-wiki;/py2cairo"/>
85 </para>
86 </sect3>
87
88 <sect3 role="installation">
89 <title>Installation of Py2cairo</title>
90
91 <para>
92 Install <application>Py2cairo</application> by running the following
93 commands:
94 </para>
95
96<screen><userinput>./waf configure --prefix=/usr &amp;&amp;
97./waf build</userinput></screen>
98
99 <para>
100 The test suite must be run after the package is installed.
101 </para>
102
103 <para>
104 Now, as the <systemitem class="username">root</systemitem> user:
105 </para>
106
107<screen role="root"><userinput>./waf install</userinput></screen>
108
109 <para>
110 The test suite requires the optional <application>pytest</application>
111 package. If installed, it is run by changing to the
112 <filename class='directory'>test</filename> directory and running
113 <command>py.test</command> as an unprivileged user.
114 </para>
115 </sect3>
116
117 <sect3 role="content">
118 <title>Contents</title>
119
120 <segmentedlist>
121 <segtitle>Installed Programs</segtitle>
122 <segtitle>Installed Library</segtitle>
123 <segtitle>Installed Directory</segtitle>
124
125 <seglistitem>
126 <seg>
127 None
128 </seg>
129 <seg>
130 _cairo.so
131 </seg>
132 <seg>
133 /usr/include/pycairo and
134 /usr/lib/python&python2-majorver;/site-packages/cairo
135 </seg>
136 </seglistitem>
137 </segmentedlist>
138 </sect3>
139 </sect2>
140 <!-- End Py2cairo -->
Note: See TracBrowser for help on using the repository browser.