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

11.3 12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal r11.3
Last change on this file since a8c1294 was dc1a45e, checked in by Bruce Dubbs <bdubbs@…>, 16 months ago

Lots of tags

  • Property mode set to 100644
File size: 4.6 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 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 "1.9 MB">
11 <!ENTITY pyparsing-buildsize "8.7 MB (add 26 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 &lfs113_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">Required</bridgehead>
73 <para role="required">
74 <xref linkend="flit_core"/>
75 </para>
76
77 <bridgehead renderas="sect5">Optional</bridgehead>
78 <para role="optional">
79 <phrase revision="sysv"><xref linkend="Jinja2"/> and</phrase>
80 <ulink url="https://pypi.org/project/railroad-diagrams/">
81 railroad-diagrams
82 </ulink> (also needed for tests)
83 </para>
84
85 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
86 <para role="optional">
87 <xref linkend="pytest"/>
88 </para>
89
90 </sect3>
91
92 <sect3 role="installation">
93 <title>Installation of pyparsing</title>
94
95 <para> Build the module: </para>
96
97<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
98
99 <para>
100 Now, as the <systemitem class="username">root</systemitem> user:
101 </para>
102
103<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pyparsing</userinput></screen>
104
105 <para>
106 Assuming <xref linkend="pytest"/> <phrase revision="systemd">is</phrase>
107 <phrase revision="sysv">and <xref linkend="Jinja2"/> are</phrase>
108 installed, but the other optional dependency is not, the installation
109 can be tested with the following commands:
110 </para>
111
112<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
113source testenv/bin/activate &amp;&amp;
114pip3 install railroad-diagrams &amp;&amp;
115python3 /usr/bin/pytest<!-- no && because of a possible error -->
116deactivate</userinput></screen>
117
118 </sect3>
119
120 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
121 href="../../../xincludes/pip3-cmd-explain.xml"/>
122
123 <sect3 role="content">
124 <title>Contents</title>
125
126 <segmentedlist>
127 <segtitle>Installed Programs</segtitle>
128 <segtitle>Installed Libraries</segtitle>
129 <segtitle>Installed Directories</segtitle>
130
131 <seglistitem>
132 <seg>None</seg>
133 <seg>None</seg>
134 <seg>
135 /usr/lib/python&python3-majorver;/site-packages/pyparsing and
136 /usr/lib/python&python3-majorver;/site-packages/pyparsing-&pyparsing-version;.dist-info
137 </seg>
138 </seglistitem>
139 </segmentedlist>
140
141 </sect3>
142
143 </sect2>
Note: See TracBrowser for help on using the repository browser.