source: general/prog/python-modules/pygtk.xml@ e6af57ed

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since e6af57ed was f4ac7141, checked in by Pierre Labastie <pierre.labastie@…>, 9 months ago

Remove many more forgotten ftp urls

  • Property mode set to 100644
File size: 6.3 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 pygtk-download-http
8 "&gnome-download-http;/pygtk/2.24/pygtk-&pygtk-version;.tar.bz2">
9 <!ENTITY pygtk-download-ftp " ">
10 <!ENTITY pygtk-md5sum "a1051d5794fd7696d3c1af6422d17a49">
11 <!ENTITY pygtk-size "2.2 MB">
12 <!ENTITY pygtk-buildsize "83 MB">
13 <!ENTITY pygtk-time "0.7 SBU">
14]>
15
16 <!-- Begin PyGTK -->
17 <sect2 id="pygtk" xreflabel="PyGTK-&pygtk-version;">
18
19 <title>PyGTK-&pygtk-version;</title>
20
21 <indexterm zone="pygtk">
22 <primary sortas="a-PyGTK">PyGTK</primary>
23 </indexterm>
24
25 <sect3 role="package">
26 <title>Introduction to PyGTK Module</title>
27
28 <para>
29 PyGTK lets you to easily create programs with a graphical user interface
30 using the <application>Python</application> programming language.
31 </para>
32
33 &lfs120_checked;
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&pygtk-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&pygtk-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &pygtk-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &pygtk-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &pygtk-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &pygtk-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">PyGTK Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 <xref linkend="pygobject2"/> and
74 <xref linkend="python2"/>
75 </para>
76
77 <bridgehead renderas="sect5">Required (atk module)</bridgehead>
78 <para role="required">
79 <xref linkend="at-spi2-core"/>
80 </para>
81
82 <bridgehead renderas="sect5">Required (pango module)</bridgehead>
83 <para role="required">
84 <xref linkend="pango"/>
85 </para>
86
87 <bridgehead renderas="sect5">Required (pangocairo module)</bridgehead>
88 <para role="required">
89 <xref linkend="pycairo2"/> and
90 <xref linkend="pango"/>
91 </para>
92
93 <bridgehead renderas="sect5">Required (gtk and gtk.unixprint modules)</bridgehead>
94 <para role="required">
95 <xref linkend="pycairo2"/> and
96 <xref linkend="gtk2"/>.
97 </para>
98
99 <bridgehead renderas="sect5">Required (gtk.glade module)</bridgehead>
100 <para role="required">
101 <xref linkend="pycairo2"/> and
102 <xref linkend="libglade"/>.
103 </para>
104
105 <bridgehead renderas="sect5">Optional</bridgehead>
106 <para role="optional">
107 <ulink url="https://www.numpy.org/">NumPy</ulink>
108 </para>
109
110 <bridgehead renderas="sect5">Optional (to Build Documentation)</bridgehead>
111 <para role="optional">
112 <xref linkend="libxslt"/>
113 </para>
114
115 </sect3>
116
117 <sect3 role="installation">
118 <title>Installation of PyGTK</title>
119
120 <para>
121 First, adapt PyGTK to changes in Pango by removing undefined
122 APIs:
123 </para>
124
125<screen><userinput remap="pre">sed -i '1394,1402 d' pango.defs</userinput></screen>
126
127 <para>
128 Install <application>PyGTK</application> by running the following
129 commands:
130 </para>
131
132<screen><userinput>./configure --prefix=/usr &amp;&amp;
133make</userinput></screen>
134
135 <para>
136 The tests must be run from an active X display. If this is so, issue:
137 <command>make check</command>.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>make install</userinput></screen>
145 </sect3>
146
147 <sect3 role="commands">
148 <title>Command Explanations</title>
149
150 <para>
151 <parameter>--enable-docs</parameter>: This option enables rebuilding the
152 html documentation if <xref linkend="libxslt"/> is installed.
153 </para>
154 </sect3>
155
156 <sect3 role="content">
157 <title>Contents</title>
158
159 <segmentedlist>
160 <segtitle>Installed Programs</segtitle>
161 <segtitle>Installed Libraries</segtitle>
162 <segtitle>Installed Directories</segtitle>
163
164 <seglistitem>
165 <seg>pygtk-codegen-2.0 and pygtk-demo.</seg>
166 <seg>
167 atk.so,
168 _gtk.so,
169 glade.so,
170 gtkunixprint.so,
171 pango.so and
172 pangocairo.so.
173 </seg>
174 <seg>
175 /usr/include/pygtk-2.0,
176 /usr/lib/pygtk,
177 /usr/lib/python&python2-majorver;/site-packages/gtk-2.0,
178 /usr/share/gtk-doc/html/pygtk and
179 /usr/share/pygtk.
180 </seg>
181 </seglistitem>
182 </segmentedlist>
183
184 <variablelist>
185 <bridgehead renderas="sect4">Short Descriptions</bridgehead>
186 <?dbfo list-presentation="list"?>
187 <?dbhtml list-presentation="table"?>
188
189 <varlistentry id="pygtk-codegen-2.0">
190 <term><command>pygtk-codegen-2.0</command></term>
191 <listitem>
192 <para>
193 is a wrapper script to run the <application>PyGTK</application>
194 codegen module
195 </para>
196 <indexterm zone="pygtk pygtk-codegen-2.0">
197 <primary sortas="b-pygtk-codegen-2.0">pygtk-codegen-2.0</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="pygtk-demo">
203 <term><command>pygtk-demo</command></term>
204 <listitem>
205 <para>
206 is a Python wrapper to run the <application>PyGTK</application>
207 demo program
208 </para>
209 <indexterm zone="pygtk pygtk-demo">
210 <primary sortas="b-pygtk-demo">pygtk-demo</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214 </variablelist>
215 </sect3>
216
217 </sect2>
Note: See TracBrowser for help on using the repository browser.