GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #24614 from charris/backport-24573 · numpy/numpy@790bfc7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • INSTALL.rst
  • benchmarks
    • README.rst
  • building_with_meson.md
  • doc
    • RELEASE_WALKTHROUGH.rst
    • TESTS.rst
    • source
      • dev
        • development_environment.rst
        • howto_build_docs.rst
        • index.rst
      • user
        • building.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎INSTALL.rst‎

Copy file name to clipboardExpand all lines: INSTALL.rst
+27-28Lines changed: 27 additions & 28 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Hypothesis__ https://hypothesis.readthedocs.io/en/latest/
3838
.. note::
3939

4040
If you want to build NumPy in order to work on NumPy itself, use
41-
``runtests.py``. For more details, see
41+
``spin``. For more details, see
4242
https://numpy.org/devdocs/dev/development_environment.html
4343

4444
.. note::
@@ -52,37 +52,36 @@ Basic Installation
5252

5353
To install NumPy, run::
5454

55-
python setup.py build -j 4 install --prefix $HOME/.local
55+
pip install .
5656

57-
This will compile numpy on 4 CPUs and install it into the specified prefix.
58-
To perform an inplace build that can be run from the source folder run::
57+
This will compile NumPy on all available CPUs and install it into the active
58+
environment.
5959

60-
python setup.py build_ext --inplace -j 4
60+
To run the build from the source folder for development purposes, use the
61+
``spin`` development CLI::
62+
63+
spin build # installs in-tree under `build-install/`
64+
spin ipython # drop into an interpreter where `import numpy` picks up the local build
65+
66+
Alternatively, use an editable install with::
67+
68+
pip install -e . --no-build-isolation
6169

6270
See `Requirements for Installing Packages <https://packaging.python.org/tutorials/installing-packages/>`_
6371
for more details.
6472

65-
The number of build jobs can also be specified via the environment variable
66-
NPY_NUM_BUILD_JOBS.
67-
6873

6974
Choosing compilers
7075
==================
7176

72-
NumPy needs a C compiler, and for development versions also needs Cython. A Fortran
73-
compiler isn't needed to build NumPy itself; the ``numpy.f2py`` tests will be
74-
skipped when running the test suite if no Fortran compiler is available. For
75-
building Scipy a Fortran compiler is needed though, so we include some details
76-
on Fortran compilers in the rest of this section.
77-
78-
On OS X and Linux, all common compilers will work. The minimum supported GCC
79-
version is 6.5.
80-
81-
For Fortran, ``gfortran`` works, ``g77`` does not. In case ``g77`` is
82-
installed then ``g77`` will be detected and used first. To explicitly select
83-
``gfortran`` in that case, do::
77+
NumPy needs C and C++ compilers, and for development versions also needs
78+
Cython. A Fortran compiler isn't needed to build NumPy itself; the
79+
``numpy.f2py`` tests will be skipped when running the test suite if no Fortran
80+
compiler is available.
8481

85-
python setup.py build --fcompiler=gnu95
82+
For more options including selecting compilers, setting custom compiler flags
83+
and controlling parallelism, see
84+
https://scipy.github.io/devdocs/building/compilers_and_options.html
8685

8786
Windows
8887
-------
@@ -104,10 +103,11 @@ for more details.
104103
Building with optimized BLAS support
105104
====================================
106105

107-
Configuring which BLAS/LAPACK is used if you have multiple libraries installed,
108-
or you have only one installed but in a non-standard location, is done via a
109-
``site.cfg`` file. See the ``site.cfg.example`` shipped with NumPy for more
110-
details.
106+
Configuring which BLAS/LAPACK is used if you have multiple libraries installed
107+
is done via a ``--config-settings`` CLI flag - if not given, the default choice
108+
is OpenBLAS. If your installed library is in a non-standard location, selecting
109+
that location is done via a pkg-config ``.pc`` file.
110+
See http://scipy.github.io/devdocs/building/blas_lapack.html for more details.
111111

112112
Windows
113113
-------
@@ -120,9 +120,8 @@ For an overview of the state of BLAS/LAPACK libraries on Windows, see
120120
macOS
121121
-----
122122

123-
You will need to install a BLAS/LAPACK library. We recommend using OpenBLAS or
124-
Intel MKL. Apple's Accelerate also still works, however it has bugs and we are
125-
likely to drop support for it in the near future.
123+
On macOS >= 13.3, you can use Apple's Accelerate library. On older macOS versions,
124+
Accelerate has bugs and we recommend using OpenBLAS or (on x86-64) Intel MKL.
126125

127126
Ubuntu/Debian
128127
-------------
Collapse file

‎benchmarks/README.rst‎

Copy file name to clipboardExpand all lines: benchmarks/README.rst
+12-14Lines changed: 12 additions & 14 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ Usage
1111
-----
1212

1313
Airspeed Velocity manages building and Python virtualenvs by itself,
14-
unless told otherwise. Some of the benchmarking features in
15-
``runtests.py`` also tell ASV to use the NumPy compiled by
16-
``runtests.py``. To run the benchmarks, you do not need to install a
14+
unless told otherwise. To run the benchmarks, you do not need to install a
1715
development version of NumPy to your current Python environment.
1816

1917
Before beginning, ensure that *airspeed velocity* is installed.
@@ -28,10 +26,9 @@ submitting a pull request.
2826
To run all benchmarks, navigate to the root NumPy directory at
2927
the command line and execute::
3028

31-
python runtests.py --bench
29+
spin bench
3230

33-
where ``--bench`` activates the benchmark suite instead of the
34-
test suite. This builds NumPy and runs all available benchmarks
31+
This builds NumPy and runs all available benchmarks
3532
defined in ``benchmarks/``. (Note: this could take a while. Each
3633
benchmark is run multiple times to measure the distribution in
3734
execution times.)
@@ -49,18 +46,19 @@ and `--quick` is used to avoid repetitions.
4946
To run benchmarks from a particular benchmark module, such as
5047
``bench_core.py``, simply append the filename without the extension::
5148

52-
python runtests.py --bench bench_core
49+
spin bench -t bench_core
5350

54-
To run a benchmark defined in a class, such as ``Mandelbrot``
55-
from ``bench_avx.py``::
51+
To run a benchmark defined in a class, such as ``MeshGrid``
52+
from ``bench_creation.py``::
5653

57-
python runtests.py --bench bench_avx.Mandelbrot
54+
spin bench -t bench_creation.MeshGrid
5855

59-
Compare change in benchmark results to another version/commit/branch::
56+
Compare changes in benchmark results to another version/commit/branch, use the
57+
``--compare`` option (or the equivalent ``-c``)::
6058

61-
python runtests.py --bench-compare v1.6.2 bench_core
62-
python runtests.py --bench-compare 8bf4e9b bench_core
63-
python runtests.py --bench-compare main bench_core
59+
spin bench --compare v1.6.2 -t bench_core
60+
spin bench --compare 20d03bcfd -t bench_core
61+
spin bench -c main -t bench_core
6462

6563
All of the commands above display the results in plain text in
6664
the console, and the results are not saved for comparison with
Collapse file

‎building_with_meson.md‎

Copy file name to clipboardExpand all lines: building_with_meson.md
+3-6Lines changed: 3 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ pytest --pyargs numpy
3737

3838
### pip install
3939

40-
Note that `pip` will use the default build system, which is (as of now) still
41-
`numpy.distutils`. In order to switch that default to Meson, uncomment the
42-
`build-backend = "mesonpy"` line at the top of `pyproject.toml`.
43-
44-
After that is done, `pip install .` or `pip install --no-build-isolation .`
45-
will work as expected. As does building an sdist or wheel with `python -m build`,
40+
Note that `pip` will use the default build system, which is now Meson.
41+
Commands such as `pip install .` or `pip install --no-build-isolation .`
42+
will work as expected, as does building an sdist or wheel with `python -m build`,
4643
or `pip install -e . --no-build-isolation` for an editable install.
4744
For a more complete developer experience than editable installs, consider using
4845
`spin` instead though (see above).
Collapse file

‎doc/RELEASE_WALKTHROUGH.rst‎

Copy file name to clipboardExpand all lines: doc/RELEASE_WALKTHROUGH.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ repository::
122122

123123
Sanity check::
124124

125-
$ python3 runtests.py -m "full"
125+
$ python3 -m spin test -m full
126126

127127
Tag the release and push the tag. This requires write permission for the numpy
128128
repository::
Collapse file

‎doc/TESTS.rst‎

Copy file name to clipboardExpand all lines: doc/TESTS.rst
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ example, the ``core`` module, use the following::
6363
Running tests from the command line
6464
-----------------------------------
6565

66-
If you want to build NumPy in order to work on NumPy itself, use
67-
``runtests.py``.To run NumPy's full test suite::
66+
If you want to build NumPy in order to work on NumPy itself, use the ``spin``
67+
utility. To run NumPy's full test suite::
6868

69-
$ python runtests.py
69+
$ spin test -m full
7070

7171
Testing a subset of NumPy::
7272

73-
$python runtests.py -t numpy/core/tests
73+
$ spin test -t numpy/core/tests
7474

7575
For detailed info on testing, see :ref:`testing-builds`
7676

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.