mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
More modules
Finished pytz. Begun pyparsing. Fixed packaging.
This commit is contained in:
parent
036821bd86
commit
b50114ca3d
@ -69,7 +69,7 @@
|
||||
<bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect5">Required</bridgehead>
|
||||
<para role="optional">
|
||||
<para role="required">
|
||||
<xref linkend="pyparsing"/>
|
||||
</para>
|
||||
|
||||
|
@ -4,30 +4,31 @@
|
||||
<!ENTITY % general-entities SYSTEM "../../../general.ent">
|
||||
%general-entities;
|
||||
|
||||
<!ENTITY pyparsing-download-http "https://github.com/pypa/pyparsing/releases/download/&pyparsing-version;/pyparsing-&pyparsing-version;.tar.gz">
|
||||
<!ENTITY pyparsing-download-http "https://github.com/pyparsing/pyparsing/releases/download/pyparsing_&pyparsing-version;/pyparsing-&pyparsing-version;.tar.gz">
|
||||
<!ENTITY pyparsing-download-ftp " ">
|
||||
<!ENTITY pyparsing-md5sum "e713c1939f294fd729af4a7be40dd141">
|
||||
<!ENTITY pyparsing-size "83 KB">
|
||||
<!ENTITY pyparsing-md5sum "fadc2f3bf5872bf6310576a86c3566e0">
|
||||
<!ENTITY pyparsing-size "1.9 MB">
|
||||
<!ENTITY pyparsing-buildsize "2.6 MB">
|
||||
<!ENTITY pyparsing-time "less than 0.1 SBU">
|
||||
]>
|
||||
|
||||
<sect2 id="pyparsing" xreflabel="pyparsing-&pyparsing-version;">
|
||||
|
||||
<title>Packaging-&pyparsing-version;</title>
|
||||
<title>pyparsing-&pyparsing-version;</title>
|
||||
|
||||
<indexterm zone="pyparsing">
|
||||
<primary sortas="a-pyparsing">pyparsing</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3 role="package">
|
||||
<title>Introduction to Packaging Module</title>
|
||||
<title>Introduction to pyparsing Module</title>
|
||||
|
||||
<para>
|
||||
The <application>Packaging</application> library provides utilities
|
||||
that implement the interoperability specifications which have clearly
|
||||
one correct behaviour or benefit greatly from having a single shared
|
||||
implementation.
|
||||
The <application>pyparsing</application> module is an alternative
|
||||
approach to creating and executing simple grammars, vs. the
|
||||
traditional lex/yacc approach, or the use of regular expressions.
|
||||
It provides a library of classes that client code uses to construct
|
||||
the grammar directly in Python code.
|
||||
</para>
|
||||
|
||||
&lfs112_checked;
|
||||
@ -66,17 +67,23 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
|
||||
<bridgehead renderas="sect4">pyparsing Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect5">Required</bridgehead>
|
||||
<para role="required">
|
||||
<xref linkend="flit_core"/>
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect5">Optional</bridgehead>
|
||||
<para role="optional">
|
||||
<xref linkend="pyparsing"/>
|
||||
<xref linkend="Jinja2"/> and
|
||||
<ulink url="https://pypi.org/project/railroad-diagrams/">railroad-diagrams</ulink>
|
||||
</para>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3 role="installation">
|
||||
<title>Installation of Packaging</title>
|
||||
<title>Installation of pyparsing</title>
|
||||
|
||||
<para> Build the module: </para>
|
||||
|
||||
|
@ -4,30 +4,29 @@
|
||||
<!ENTITY % general-entities SYSTEM "../../../general.ent">
|
||||
%general-entities;
|
||||
|
||||
<!ENTITY pytz-download-http "https://github.com/pypa/pytz/releases/download/&pytz-version;/pytz-&pytz-version;.tar.gz">
|
||||
<!ENTITY pytz-download-http "https://github.com/stub42/pytz/archive/refs/tags/release_&pytz-version;/pytz-&pytz-version;.tar.gz">
|
||||
<!ENTITY pytz-download-ftp " ">
|
||||
<!ENTITY pytz-md5sum "e713c1939f294fd729af4a7be40dd141">
|
||||
<!ENTITY pytz-size "83 KB">
|
||||
<!ENTITY pytz-md5sum "855307f8455430a3375946970a2177cc">
|
||||
<!ENTITY pytz-size "606 KB">
|
||||
<!ENTITY pytz-buildsize "2.6 MB">
|
||||
<!ENTITY pytz-time "less than 0.1 SBU">
|
||||
]>
|
||||
|
||||
<sect2 id="pytz" xreflabel="pytz-&pytz-version;">
|
||||
|
||||
<title>Packaging-&pytz-version;</title>
|
||||
<title>Pytz-&pytz-version;</title>
|
||||
|
||||
<indexterm zone="pytz">
|
||||
<primary sortas="a-pytz">pytz</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3 role="package">
|
||||
<title>Introduction to Packaging Module</title>
|
||||
<title>Introduction to Pytz Module</title>
|
||||
|
||||
<para>
|
||||
The <application>Packaging</application> library provides utilities
|
||||
that implement the interoperability specifications which have clearly
|
||||
one correct behaviour or benefit greatly from having a single shared
|
||||
implementation.
|
||||
The <application>Pytz</application> library brings the IANA tz database
|
||||
into Python. It allows acuurate and cross-platform timezone
|
||||
calculations.
|
||||
</para>
|
||||
|
||||
&lfs112_checked;
|
||||
@ -66,29 +65,54 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect4">Packaging Dependencies</bridgehead>
|
||||
<bridgehead renderas="sect4">Pytz dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect5">Required</bridgehead>
|
||||
<para role="optional">
|
||||
<xref linkend="pyparsing"/>
|
||||
<bridgehead renderas="sect5">Recommended</bridgehead>
|
||||
<para role="recommended">
|
||||
<xref linkend="rsync"/> (used in the build instructions)
|
||||
</para>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3 role="installation">
|
||||
<title>Installation of Packaging</title>
|
||||
<title>Installation of Pytz</title>
|
||||
|
||||
<para> Build the module: </para>
|
||||
<para>
|
||||
Before building the python wheel, the timezone database has to
|
||||
be compiled:
|
||||
</para>
|
||||
|
||||
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
||||
<screen><userinput>make -C tz \
|
||||
ZFLAGS='-b fat' \
|
||||
PACKRATDATA= \
|
||||
TOPDIR=$(pwd)/build \
|
||||
USRDIR= \
|
||||
USRSHAREDIR=etc \
|
||||
install &&
|
||||
|
||||
<para>
|
||||
This package does not come with a test suite.
|
||||
</para>
|
||||
for d in zoneinfo zoneinfo-leaps zoneinfo-posix; do \
|
||||
rsync -a $(pwd)/build/etc/$d/ $(pwd)/build/etc/$d.tmp &&
|
||||
rm -rf $(pwd)/build/etc/$d &&
|
||||
mv $(pwd)/build/etc/$d.tmp $(pwd)/build/etc/$d
|
||||
done &&
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
python3 gen_tzinfo.py &&
|
||||
cp -a build/etc/zoneinfo build/dist/pytz/zoneinfo</userinput></screen>
|
||||
|
||||
<para>
|
||||
Build the module:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cd build/dist &&
|
||||
pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
|
||||
|
||||
<para>
|
||||
This package does not come with a test suite.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user pytz</userinput></screen>
|
||||
|
||||
|
@ -541,7 +541,7 @@ to avoid building libxml2 twice, which is slow with all deps -->
|
||||
<!ENTITY imagesize-version "1.4.1">
|
||||
<!ENTITY packaging-version "21.3">
|
||||
<!ENTITY pyparsing-version "1.0.2"> <!-- TODO bogus -->
|
||||
<!ENTITY pytz-version "1.0.2"> <!-- TODO bogus -->
|
||||
<!ENTITY pytz-version "2022.4">
|
||||
<!ENTITY snowballstemmer-version "2.2.0">
|
||||
<!ENTITY sc-applehelp-version "1.0.2">
|
||||
<!ENTITY sc-applehelp-dev-version "1.0.2.dev<build date>">
|
||||
|
Loading…
Reference in New Issue
Block a user