source: general/prog/python-modules/pygments.xml@ 067f9984

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 067f9984 was 569925c7, checked in by Bruce Dubbs <bdubbs@…>, 17 months ago

Update python modules for pythonhosted

Move the pythonhoted page to python_modules even though it is not
yet activated to render in the book.

Change location of pythonhosted md5sum ENTITIES to packages.ent
so they can be used in multiple pages but only need to be updated
in one place.

Note that pages not have entries like:

<!ENTITY asciidoc-md5sum "&asciidoc-md5sum;">

so this seems to be redefinig the entity to the version
in packages.ent. This seems to be OK with the build system.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 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 pygments-download-http
8 "https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-&pygments-version;.tar.gz">
9 <!ENTITY pygments-download-ftp " ">
10 <!ENTITY pygments-md5sum "&pygments-md5sum;">
11 <!ENTITY pygments-size "4.2 MB">
12 <!ENTITY pygments-buildsize "51 MB">
13 <!ENTITY pygments-time "less than 0.1 SBU">
14]>
15
16 <!-- Begin Pygments -->
17 <sect2 id="pygments" xreflabel="Pygments-&pygments-version;">
18
19 <title>Pygments-&pygments-version;</title>
20
21 <indexterm zone="pygments">
22 <primary sortas="a-Pygments">Pygments</primary>
23 </indexterm>
24
25 <sect3 role="package">
26 <title>Introduction to Pygments Module</title>
27
28 <para>
29 <application>Pygments</application> is a general syntax highlighter
30 written in <application>Python</application>, for more than 300
31 languages.
32 </para>
33
34 &lfs112_checked;
35
36 <bridgehead renderas="sect4">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&pygments-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&pygments-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &pygments-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &pygments-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &pygments-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &pygments-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <para condition="html" role="usernotes">
71 User Notes: <ulink url="&blfs-wiki;/pygments"/>
72 </para>
73 </sect3>
74
75 <sect3 role="installation">
76 <title>Installation of Pygments</title>
77
78 <para>
79 Build the <application>Python 3</application> module:
80 </para>
81
82<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
83
84 <para>
85 To install the package run the following as the &root; user:
86 </para>
87
88<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user Pygments</userinput></screen>
89
90 </sect3>
91
92 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
93 href="../../../xincludes/pip3-cmd-explain.xml"/>
94
95 <sect3 role="content">
96 <title>Contents</title>
97
98 <segmentedlist>
99 <segtitle>Installed Programs</segtitle>
100 <segtitle>Installed Library</segtitle>
101 <segtitle>Installed Directories</segtitle>
102
103 <seglistitem>
104 <seg>
105 pygmentize
106 </seg>
107 <seg>
108 None
109 </seg>
110 <seg>
111 /usr/lib/python&python3-majorver;/site-packages/pygments and
112 /usr/lib/python&python3-majorver;/site-packages/Pygments-&pygments-version;.dist-info
113 </seg>
114 </seglistitem>
115 </segmentedlist>
116
117 <variablelist>
118 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
119 <?dbfo list-presentation="list"?>
120 <?dbhtml list-presentation="table"?>
121
122 <varlistentry id="pygmentize">
123 <term><command>pygmentize</command></term>
124 <listitem>
125 <para>
126 highlights an input file and writes the result to an output file
127 </para>
128 <indexterm zone="pygments pygmentize">
129 <primary sortas="b-pygmentize">pygmentize</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 </variablelist>
135
136 </sect3>
137
138 </sect2>
Note: See TracBrowser for help on using the repository browser.