[7b3ac32] | 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;">
|
---|
[3b76db39] | 10 | <!ENTITY numpy-size "15 MB">
|
---|
| 11 | <!ENTITY numpy-buildsize "114 MB (add 340 MB for tests)">
|
---|
| 12 | <!ENTITY numpy-time "1.6 SBU (4.5 SBU for tests)">
|
---|
[7b3ac32] | 13 | ]>
|
---|
| 14 |
|
---|
[0918543] | 15 | <sect2 id="numpy" xreflabel="NumPy-&numpy-version;">
|
---|
[7b3ac32] | 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 |
|
---|
[282a0eb] | 31 | &lfs120_checked;
|
---|
[7b3ac32] | 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">
|
---|
[a8c1294] | 81 | fortran from <xref linkend="gcc"/>,
|
---|
[543663e] | 82 | <ulink url="https://www.netlib.org/lapack/">lapack and cblas</ulink>, and
|
---|
[a8c1294] | 83 | <ulink url="https://www.openblas.net/">openblas</ulink>
|
---|
[7b3ac32] | 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
---|
| 87 | <para role="optional">
|
---|
| 88 | <xref linkend="attrs"/>,
|
---|
[543663e] | 89 | <xref linkend="pytest"/>, and
|
---|
[7b3ac32] | 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 |
|
---|
[3b76db39] | 100 | <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir -Csetup-args=-Dallow-noblas=true $PWD</userinput></screen>
|
---|
[7b3ac32] | 101 |
|
---|
| 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
[db244ae2] | 106 | <screen role="root"><userinput>&install-wheel; numpy</userinput></screen>
|
---|
[7b3ac32] | 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 &&
|
---|
| 113 | source testenv/bin/activate &&
|
---|
| 114 | pip3 install hypothesis &&
|
---|
| 115 | python3 runtests.py<!-- no && because of a possible error -->
|
---|
| 116 | deactivate</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>
|
---|