source: general/prog/pycairo.xml@ 3df8ea47

10.1 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 3df8ea47 was 3df8ea47, checked in by Bruce Dubbs <bdubbs@…>, 5 months ago

Tags for libraries

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24255 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.7 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 pycairo-download-http "https://github.com/pygobject/pycairo/releases/download/v&pycairo-version;/pycairo-&pycairo-version;.tar.gz">
8 <!ENTITY pycairo-download-ftp " ">
9 <!ENTITY pycairo-md5sum "a1f9b661a0000c2f42281db933284451">
10 <!ENTITY pycairo-size "340 KB">
11 <!ENTITY pycairo-buildsize "3.6 MB">
12 <!ENTITY pycairo-time "less than 0.1 SBU">
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>
28 PyCairo provides <application>Python</application> bindings to
29 <application>Cairo</application>.
30 </para>
31
32 &lfs101_checked;
33 <!-- Does not use gcc -->
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&pycairo-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&pycairo-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &pycairo-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &pycairo-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &pycairo-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &pycairo-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">PyCairo Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 <xref linkend="cairo"/>
74 </para>
75
76 <bridgehead renderas="sect5">Optional</bridgehead>
77 <para role="optional">
78 <ulink url="https://hypothesis.readthedocs.io">Hypothesis</ulink>
79 (for tests)
80 </para>
81
82 <para condition="html" role="usernotes">
83 User Notes: <ulink url="&blfs-wiki;/pycairo"/>
84 </para>
85 </sect3>
86
87 <sect3 role="installation">
88 <title>Installation of PyCairo</title>
89
90 <note>
91 <para>
92 The current version of pycairo no longer builds the Python2 module.
93 If you need that module for packages such as <xref linkend="gimp"/>, use
94 <xref linkend="pycairo2"/>
95 </para>
96 </note>
97
98 <para>
99 Install <application>PyCairo</application> for Python3 by
100 running the following commands:
101 </para>
102
103<screen><userinput>python3 setup.py build</userinput></screen>
104
105 <para>
106 This package does not come with a test suite.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>python3 setup.py install --optimize=1 &amp;&amp;
114python3 setup.py install_pycairo_header &amp;&amp;
115python3 setup.py install_pkgconfig</userinput></screen>
116<!-- Seems that install does the following too
117python2 setup.py install_pycairo_header &amp;&amp;
118python2 setup.py install_pkgconfig</userinput></screen>-->
119
120<!-- Python2 is no longer supported
121python2 setup.py install - -optimize=1 &amp;&amp;
122python2 setup.py install_pycairo_header &amp;&amp;
123python2 setup.py install_pkgconfig &amp;&amp;-->
124 </sect3>
125
126 <sect3 role="content">
127 <title>Contents</title>
128
129 <segmentedlist>
130 <segtitle>Installed Program</segtitle>
131 <segtitle>Installed Library</segtitle>
132 <segtitle>Installed Directories</segtitle>
133
134 <seglistitem>
135 <seg>
136 None
137 </seg>
138 <seg>
139 <!--_cairo.so (python2) and -->
140 _cairo.&python3-lib-suffix;.so
141 </seg>
142 <seg>
143 /usr/include/pycairo,
144<!-- /usr/lib/python&python2-majorver;/site-packages/cairo,
145 /usr/lib/python&python2-majorver;/site-packages/pycairo-&pycairo-version;-py&python2-majorver;.egg,
146 /usr/lib/python&python3-majorver;/site-packages/cairo--> and
147 /usr/lib/python&python3-majorver;/site-packages/pycairo-&pycairo-version;-py&python3-majorver;.egg
148 </seg>
149 </seglistitem>
150 </segmentedlist>
151 </sect3>
152
153 </sect2>
Note: See TracBrowser for help on using the repository browser.