source: general/prog/python-modules/psutil.xml@ c0f934f0

12.2 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since c0f934f0 was a14a1ff3, checked in by Xi Ruoyao <xry111@…>, 2 months ago

psutil: Run the test suite

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 psutil-download-http "&pymodules-dl;/p/psutil/psutil-&psutil-version;.tar.gz">
8 <!ENTITY psutil-download-ftp " ">
9 <!ENTITY psutil-md5sum "&psutil-md5sum;">
10 <!ENTITY psutil-size "500 KB">
11 <!ENTITY psutil-buildsize "4.3 MB">
12 <!ENTITY psutil-time "less than 0.1 SBU">
13]>
14
15 <!-- Begin psutil -->
16 <sect2 id="psutil" xreflabel="psutil-&psutil-version;">
17
18 <title>psutil-&psutil-version;</title>
19
20 <indexterm zone="psutil">
21 <primary sortas="a-psutil">psutil</primary>
22 </indexterm>
23
24 <sect3 role="package">
25 <title>Introduction to psutil Module</title>
26
27 <para>
28 psutil (process and system utilities) is a cross-platform library
29 for retrieving information on running processes and system utilization
30 (CPU, memory, disks, network, sensors) in Python. It is useful mainly
31 for system monitoring, profiling and limiting process resources and
32 management of running processes. It implements many functionalities offered
33 by classic UNIX command line tools such as ps, top, iotop, lsof, netstat,
34 ifconfig, free and others.
35 </para>
36
37 &lfs121_checked;
38
39 <bridgehead renderas="sect4">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&psutil-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&psutil-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &psutil-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &psutil-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &psutil-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &psutil-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 </sect3>
74
75 <sect3 role="installation">
76 <title>Installation of psutil</title>
77
78 <para>
79 Build the module:
80 </para>
81
82&build-wheel;
83
84 <para>
85 To test the results, issue:
86 </para>
87
88 <screen remap="test"><userinput>mkdir empty &amp;&amp;
89(cd empty; python3 -m psutil.tests)</userinput></screen>
90
91 <!-- https://github.com/giampaolo/psutil/pull/2097
92 Also mentions some other failures but it seems on BLFS only
93 these two fail. -->
94 <para>
95 Two tests named <literal>test_disk_usage</literal> and
96 <literal>test_io_counters</literal> are known to fail.
97 </para>
98
99 <para>
100 Now, as the &root; user:
101 </para>
102
103<screen role="root"><userinput>&install-wheel; psutil</userinput></screen>
104
105 </sect3>
106
107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
108 href="../../../xincludes/pip3-cmd-explain.xml"/>
109
110 <sect3 role="content">
111 <title>Contents</title>
112
113 <segmentedlist>
114 <segtitle>Installed Programs</segtitle>
115 <segtitle>Installed Libraries</segtitle>
116 <segtitle>Installed Directories</segtitle>
117
118 <seglistitem>
119 <seg>
120 None
121 </seg>
122 <seg>
123 None
124 </seg>
125 <seg>
126 /usr/lib/python&python3-majorver;/site-packages/psutil-&psutil-version;.dist-info
127 </seg>
128 </seglistitem>
129 </segmentedlist>
130 </sect3>
131
132 </sect2>
Note: See TracBrowser for help on using the repository browser.