source: general/prog/python-modules/pyparsing.xml@ 070448e

ken/TL2024 lazarus trunk
Last change on this file since 070448e was 070448e, checked in by Douglas R. Reno <renodr@…>, 2 months ago

Update to pyparsing-3.1.2 (Python Module)

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 pyparsing-download-http "https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-&pyparsing-version;.tar.gz">
8 <!ENTITY pyparsing-download-ftp " ">
9 <!ENTITY pyparsing-md5sum "&pyparsing-md5sum;">
10 <!ENTITY pyparsing-size "872 KB">
11 <!ENTITY pyparsing-buildsize "3.3 MB (add 27 MB for tests)">
12 <!ENTITY pyparsing-time "less than 0.1 SBU (0.3 SBU for tests)">
13]>
14
15 <sect2 id="pyparsing" xreflabel="pyparsing-&pyparsing-version;">
16
17 <title>pyparsing-&pyparsing-version;</title>
18
19 <indexterm zone="pyparsing">
20 <primary sortas="a-pyparsing">pyparsing</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to pyparsing Module</title>
25
26 <para>
27 The <application>pyparsing</application> module is an alternative
28 approach to creating and executing simple grammars, vs. the
29 traditional lex/yacc approach, or the use of regular expressions.
30 It provides a library of classes that client code uses to construct
31 the grammar directly in Python code.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect4">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&pyparsing-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&pyparsing-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &pyparsing-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &pyparsing-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &pyparsing-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &pyparsing-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect4">pyparsing Dependencies</bridgehead>
71
72 <bridgehead renderas="sect5">Optional</bridgehead>
73 <para role="optional">
74 <ulink url="https://pypi.org/project/railroad-diagrams/">
75 railroad-diagrams
76 </ulink> (also needed for tests)
77 </para>
78
79 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
80 <para role="optional">
81 <xref linkend="pytest"/>
82 </para>
83
84 </sect3>
85
86 <sect3 role="installation">
87 <title>Installation of pyparsing</title>
88
89 <para> Build the module: </para>
90
91&build-wheel;
92
93 <para>
94 Now, as the <systemitem class="username">root</systemitem> user:
95 </para>
96
97<screen role="root"><userinput>&install-wheel; pyparsing</userinput></screen>
98
99 <para>
100 Assuming <xref linkend="pytest"/> is
101 installed, but the other optional dependency is not, the installation
102 can be tested with the following commands:
103 </para>
104
105<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
106source testenv/bin/activate &amp;&amp;
107pip3 install railroad-diagrams &amp;&amp;
108python3 /usr/bin/pytest<!-- no && because of a possible error -->
109deactivate</userinput></screen>
110
111 </sect3>
112
113 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
114 href="../../../xincludes/pip3-cmd-explain.xml"/>
115
116 <sect3 role="content">
117 <title>Contents</title>
118
119 <segmentedlist>
120 <segtitle>Installed Programs</segtitle>
121 <segtitle>Installed Libraries</segtitle>
122 <segtitle>Installed Directories</segtitle>
123
124 <seglistitem>
125 <seg>None</seg>
126 <seg>None</seg>
127 <seg>
128 /usr/lib/python&python3-majorver;/site-packages/pyparsing and
129 /usr/lib/python&python3-majorver;/site-packages/pyparsing-&pyparsing-version;.dist-info
130 </seg>
131 </seglistitem>
132 </segmentedlist>
133
134 </sect3>
135
136 </sect2>
Note: See TracBrowser for help on using the repository browser.