source: general/prog/python-dependencies/Babel.xml@ 78a778b

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 78a778b was 082e722, checked in by Bruce Dubbs <bdubbs@…>, 10 months ago

Finish replacing 'pip3 wheel' and 'pip3 install' text with ENTITIES

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