source: general/prog/python-dependencies/Babel.xml@ 31d19ce

11.3 12.0 12.1 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 31d19ce was 569925c7, checked in by Bruce Dubbs <bdubbs@…>, 19 months ago

Update python modules for pythonhosted

Move the pythonhoted page to python_modules even though it is not
yet activated to render in the book.

Change location of pythonhosted md5sum ENTITIES to packages.ent
so they can be used in multiple pages but only need to be updated
in one place.

Note that pages not have entries like:

<!ENTITY asciidoc-md5sum "&asciidoc-md5sum;">

so this seems to be redefinig the entity to the version
in packages.ent. This seems to be OK with the build system.

  • Property mode set to 100644
File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect2 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 babel-download-http "https://files.pythonhosted.org/packages/source/B/Babel/Babel-&babel-version;.tar.gz">
8 <!ENTITY babel-download-ftp " ">
9 <!ENTITY babel-md5sum "&babel-md5sum;">
10 <!ENTITY babel-size "8.9 MB">
11 <!ENTITY babel-buildsize "103 MB (add 30 MB for tests)">
12 <!ENTITY babel-time "less than 0.1 SBU (0.1 SBU for tests)">
13]>
14
15 <sect2 id="babel" xreflabel="Babel-&babel-version;">
16
17 <title>Babel-&babel-version;</title>
18
19 <indexterm zone="babel">
20 <primary sortas="a-Babel">Babel</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Babel Module</title>
25
26 <para>
27 The <application>Babel</application> package is an integrated
28 collection of utilities that assist in internationalizing and
29 localizing Python applications, with an emphasis on web-based
30 applications.
31 </para>
32
33 &lfs112_checked;
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&babel-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&babel-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &babel-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &babel-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &babel-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &babel-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">Babel Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 <xref linkend="pytz"/>
74 </para>
75
76 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
77 <para role="optional">
78 <xref linkend="pytest"/>,
79 <ulink url="https://pypi.org/project/freezegun/">freezegun</ulink>==0.3.12, and
80 <ulink url="https://pypi.org/project/pytest-cov/">pytest-cov</ulink>
81 </para>
82
83 </sect3>
84
85 <sect3 role="installation">
86 <title>Installation of Babel</title>
87 <para> Build the module: </para>
88
89<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
90
91 <para>
92 Now, as the <systemitem class="username">root</systemitem> user:
93 </para>
94
95<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Babel</userinput></screen>
96
97 <para>
98 Assuming <xref linkend="pytest"/> is installed, but the other optional
99 dependencies are not, the installation can be tested with the following
100 commands:
101 </para>
102
103<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
104source testenv/bin/activate &amp;&amp;
105pip3 install pytest-cov freezegun==0.3.12 &amp;&amp;
106python3 /usr/bin/pytest<!-- no && because of the error -->
107deactivate</userinput></screen>
108<!--
109 <para>
110 One test involving zh_TW locale is known to fail.
111 </para>
112 -->
113 </sect3>
114
115 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
116 href="../../../xincludes/pip3-cmd-explain.xml"/>
117
118 <sect3 role="content">
119 <title>Contents</title>
120
121 <segmentedlist>
122 <segtitle>Installed Programs</segtitle>
123 <segtitle>Installed Libraries</segtitle>
124 <segtitle>Installed Directories</segtitle>
125
126 <seglistitem>
127 <seg>
128 pybabel
129 </seg>
130 <seg>None</seg>
131 <seg>
132 /usr/lib/python&python3-majorver;/site-packages/babel and
133 /usr/lib/python&python3-majorver;/site-packages/Babel-&babel-version;.dist-info
134 </seg>
135 </seglistitem>
136 </segmentedlist>
137
138 <variablelist>
139 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
140 <?dbfo list-presentation="list"?>
141 <?dbhtml list-presentation="table"?>
142
143 <varlistentry id="pybabel">
144 <term><command>pybabel</command></term>
145 <listitem>
146 <para>
147 is a command-line interface for working with message
148 catalogs
149 </para>
150 <indexterm zone="babel pybabel">
151 <primary sortas="b-pybabel">pybabel</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155 </variablelist>
156
157 </sect3>
158
159 </sect2>
Note: See TracBrowser for help on using the repository browser.