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

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 543663e was 543663e, checked in by Douglas R. Reno <renodr@…>, 13 months ago

Update to NumPy-1.25.0 (Python Module)

  • Property mode set to 100644
File size: 5.0 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 "10 MB">
11 <!ENTITY numpy-buildsize "236 MB (add 136 MB for tests)">
12 <!ENTITY numpy-time "1.5 SBU (2.5 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 &lfs113_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"/>
72 </para>
73
74<!-- <bridgehead renderas="sect5">Recommended</bridgehead>
75 <para role="recommended">
76 <xref linkend="setuptools_scm"/>
77 </para>-->
78
79 <bridgehead renderas="sect5">Optional</bridgehead>
80 <para role="optional">
81 fortran from <xref linkend="gcc"/>,
82 <ulink url="https://www.netlib.org/lapack/">lapack and cblas</ulink>, and
83 <ulink url="https://www.openblas.net/">openblas</ulink>
84 </para>
85
86 <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
87 <para role="optional">
88 <xref linkend="attrs"/>,
89 <xref linkend="pytest"/>, and
90 <ulink url="https://pypi.org/project/hypothesis/">hypothesis</ulink>
91 </para>
92
93 </sect3>
94
95 <sect3 role="installation">
96 <title>Installation of NumPy</title>
97
98 <para> Build the module: </para>
99
100<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
101
102 <para>
103 Now, as the <systemitem class="username">root</systemitem> user:
104 </para>
105
106<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user numpy</userinput></screen>
107
108 <para>
109 The installation can be tested with the following commands:
110 </para>
111
112<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
113source testenv/bin/activate &amp;&amp;
114pip3 install hypothesis &amp;&amp;
115python3 runtests.py<!-- no && because of a possible error -->
116deactivate</userinput></screen>
117
118 </sect3>
119
120 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
121 href="../../../xincludes/pip3-cmd-explain.xml"/>
122
123 <sect3 role="content">
124 <title>Contents</title>
125
126 <segmentedlist>
127 <segtitle>Installed Programs</segtitle>
128 <segtitle>Installed Libraries</segtitle>
129 <segtitle>Installed Directories</segtitle>
130
131 <seglistitem>
132 <seg>
133 f2py, f2py3 and f2py&python3-majorver; (3 copies of the same script)
134 </seg>
135 <!-- we seem not to record the solibs, see e.g. lxml, cairo
136 actually, this one has a lot, all with awkward
137 * .cpython-311-x86_64-linux-gnu.so names -->
138 <seg>None</seg>
139 <seg>
140 /usr/lib/python&python3-majorver;/site-packages/numpy
141 </seg>
142 </seglistitem>
143 </segmentedlist>
144
145 <variablelist>
146 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
147 <?dbfo list-presentation="list"?>
148 <?dbhtml list-presentation="table"?>
149
150 <varlistentry id="f2py">
151 <term><command>f2py</command></term>
152 <listitem>
153 <para>
154 is the Fortran to Python interface generator utility.
155 </para>
156 <indexterm zone="numpy f2py">
157 <primary sortas="b-f2py">f2py</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 </variablelist>
163
164 </sect3>
165
166 </sect2>
Note: See TracBrowser for help on using the repository browser.