[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[036821b] | 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 pyparsing-download-http "https://files.pythonhosted.org/packages/source/p/pyparsing/pyparsing-&pyparsing-version;.tar.gz">
|
---|
[036821b] | 8 | <!ENTITY pyparsing-download-ftp " ">
|
---|
[569925c7] | 9 | <!ENTITY pyparsing-md5sum "&pyparsing-md5sum;">
|
---|
[b72fcd3] | 10 | <!ENTITY pyparsing-size "900 KB">
|
---|
| 11 | <!ENTITY pyparsing-buildsize "97 MB (with tests)">
|
---|
| 12 | <!ENTITY pyparsing-time "0.3 SBU (with tests)">
|
---|
[036821b] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect2 id="pyparsing" xreflabel="pyparsing-&pyparsing-version;">
|
---|
| 16 |
|
---|
[b50114c] | 17 | <title>pyparsing-&pyparsing-version;</title>
|
---|
[036821b] | 18 |
|
---|
| 19 | <indexterm zone="pyparsing">
|
---|
| 20 | <primary sortas="a-pyparsing">pyparsing</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect3 role="package">
|
---|
[b50114c] | 24 | <title>Introduction to pyparsing Module</title>
|
---|
[036821b] | 25 |
|
---|
| 26 | <para>
|
---|
[b50114c] | 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.
|
---|
[036821b] | 32 | </para>
|
---|
| 33 |
|
---|
[f822342] | 34 | &lfs122_checked;
|
---|
[036821b] | 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 |
|
---|
[b50114c] | 70 | <bridgehead renderas="sect4">pyparsing Dependencies</bridgehead>
|
---|
[036821b] | 71 |
|
---|
[b50114c] | 72 | <bridgehead renderas="sect5">Optional</bridgehead>
|
---|
[036821b] | 73 | <para role="optional">
|
---|
[352e81e] | 74 | <ulink url="https://pypi.org/project/railroad-diagrams/">
|
---|
| 75 | railroad-diagrams
|
---|
| 76 | </ulink> (also needed for tests)
|
---|
[74434cc] | 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
---|
| 80 | <para role="optional">
|
---|
| 81 | <xref linkend="pytest"/>
|
---|
[036821b] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 | </sect3>
|
---|
| 85 |
|
---|
| 86 | <sect3 role="installation">
|
---|
[b50114c] | 87 | <title>Installation of pyparsing</title>
|
---|
[036821b] | 88 |
|
---|
| 89 | <para> Build the module: </para>
|
---|
| 90 |
|
---|
[db244ae2] | 91 | &build-wheel;
|
---|
[036821b] | 92 |
|
---|
| 93 | <para>
|
---|
[74434cc] | 94 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[036821b] | 95 | </para>
|
---|
| 96 |
|
---|
[db244ae2] | 97 | <screen role="root"><userinput>&install-wheel; pyparsing</userinput></screen>
|
---|
[74434cc] | 98 |
|
---|
[036821b] | 99 | <para>
|
---|
[32c1b77] | 100 | Assuming <xref linkend="pytest"/> is
|
---|
[74434cc] | 101 | installed, but the other optional dependency is not, the installation
|
---|
| 102 | can be tested with the following commands:
|
---|
[036821b] | 103 | </para>
|
---|
| 104 |
|
---|
[74434cc] | 105 | <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &&
|
---|
| 106 | source testenv/bin/activate &&
|
---|
[b72fcd3] | 107 | pip3 install railroad-diagrams matplotlib &&
|
---|
[74434cc] | 108 | python3 /usr/bin/pytest<!-- no && because of a possible error -->
|
---|
| 109 | deactivate</userinput></screen>
|
---|
[036821b] | 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>
|
---|