source: general/prog/python-modules/numpy.xml@ db035ac9

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since db035ac9 was db035ac9, checked in by Bruce Dubbs <bdubbs@…>, 7 months ago

Update to numpy-1.26.2 (Python module).

  • Property mode set to 100644
File size: 5.2 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 numpy-download-http "https://files.pythonhosted.org/packages/source/n/numpy/numpy-&numpy-version;.tar.gz">
8 <!ENTITY numpy-download-ftp " ">
9 <!ENTITY numpy-md5sum "&numpy-md5sum;">
10 <!ENTITY numpy-size "15 MB">
11 <!ENTITY numpy-buildsize "112 MB (add 331 MB for tests)">
12 <!ENTITY numpy-time "0.4 SBU (add 1.9 SBU for tests)">
13]>
14
15 <sect2 id="numpy" xreflabel="NumPy-&numpy-version;">
16
17 <title>NumPy-&numpy-version;</title>
18
19 <indexterm zone="numpy">
20 <primary sortas="a-numpy">numpy</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to NumPy Module</title>
25
26 <para>
27 <application>NumPy</application> is the fundamental package for
28 scientific computing with Python.
29 </para>
30
31 &lfs120_checked;
32
33 <bridgehead renderas="sect4">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>
37 Download (HTTP): <ulink url="&numpy-download-http;"/>
38 </para>
39 </listitem>
40 <listitem>
41 <para>
42 Download (FTP): <ulink url="&numpy-download-ftp;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download MD5 sum: &numpy-md5sum;
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download size: &numpy-size;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Estimated disk space required: &numpy-buildsize;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated build time: &numpy-time;
63 </para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect4">NumPy Dependencies</bridgehead>
68
69 <bridgehead renderas="sect5">Required</bridgehead>
70 <para role="required">
71 <xref linkend="cython"/> and
72 <xref linkend="pyproject-metadata"/>
73 </para>
74
75<!-- <bridgehead renderas="sect5">Recommended</bridgehead>
76 <para role="recommended">
77 <xref linkend="setuptools_scm"/>
78 </para>-->
79
80 <bridgehead renderas="sect5">Optional</bridgehead>
81 <para role="optional">
82 fortran from <xref linkend="gcc"/>,
83 <ulink url="https://www.netlib.org/lapack/">lapack and cblas</ulink>, and
84 <ulink url="https://www.openblas.net/">openblas</ulink>
85 </para>
86
87 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
88 <para role="optional">
89 <xref linkend="attrs"/>,
90 <xref linkend="pytest"/>, and
91 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>
92 </para>
93
94 </sect3>
95
96 <sect3 role="installation">
97 <title>Installation of NumPy</title>
98
99 <para> Build the module: </para>
100
101<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir -Csetup-args=-Dallow-noblas=true $PWD</userinput></screen>
102
103 <para>
104 Now, as the <systemitem class="username">root</systemitem> user:
105 </para>
106
107<screen role="root"><userinput>&install-wheel; numpy</userinput></screen>
108
109 <para>
110 The installation can be tested with the following commands:
111 </para>
112
113<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
114source testenv/bin/activate &amp;&amp;
115pip3 install hypothesis &amp;&amp;
116python3 runtests.py<!-- no && because of a possible error -->
117deactivate</userinput></screen>
118
119 <para>
120 Two tests report errors due to a deprecation warning in the tests.
121 </para>
122
123 </sect3>
124
125 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
126 href="../../../xincludes/pip3-cmd-explain.xml"/>
127
128 <sect3 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Programs</segtitle>
133 <segtitle>Installed Libraries</segtitle>
134 <segtitle>Installed Directories</segtitle>
135
136 <seglistitem>
137 <seg>
138 f2py, f2py3 and f2py&python3-majorver; (3 copies of the same script)
139 </seg>
140 <!-- we seem not to record the solibs, see e.g. lxml, cairo
141 actually, this one has a lot, all with awkward
142 * .cpython-311-x86_64-linux-gnu.so names -->
143 <seg>None</seg>
144 <seg>
145 /usr/lib/python&python3-majorver;/site-packages/numpy
146 </seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154
155 <varlistentry id="f2py">
156 <term><command>f2py</command></term>
157 <listitem>
158 <para>
159 is the Fortran to Python interface generator utility.
160 </para>
161 <indexterm zone="numpy f2py">
162 <primary sortas="b-f2py">f2py</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 </variablelist>
168
169 </sect3>
170
171 </sect2>
Note: See TracBrowser for help on using the repository browser.