@@ -38,7 +38,7 @@ Hypothesis__ https://hypothesis.readthedocs.io/en/latest/ |
38 | 38 | .. note:: |
39 | 39 |
|
40 | 40 | 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 |
42 | 42 | https://numpy.org/devdocs/dev/development_environment.html |
43 | 43 |
|
44 | 44 | .. note:: |
@@ -52,37 +52,36 @@ Basic Installation |
52 | 52 |
|
53 | 53 | To install NumPy, run:: |
54 | 54 |
|
55 | | - python setup.py build -j 4 install --prefix $HOME/.local |
| 55 | + pip install . |
56 | 56 |
|
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. |
59 | 59 |
|
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 |
61 | 69 |
|
62 | 70 | See `Requirements for Installing Packages <https://packaging.python.org/tutorials/installing-packages/>`_ |
63 | 71 | for more details. |
64 | 72 |
|
65 | | -The number of build jobs can also be specified via the environment variable |
66 | | -NPY_NUM_BUILD_JOBS. |
67 | | - |
68 | 73 |
|
69 | 74 | Choosing compilers |
70 | 75 | ================== |
71 | 76 |
|
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. |
84 | 81 |
|
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 |
86 | 85 |
|
87 | 86 | Windows |
88 | 87 | ------- |
@@ -104,10 +103,11 @@ for more details. |
104 | 103 | Building with optimized BLAS support |
105 | 104 | ==================================== |
106 | 105 |
|
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. |
111 | 111 |
|
112 | 112 | Windows |
113 | 113 | ------- |
@@ -120,9 +120,8 @@ For an overview of the state of BLAS/LAPACK libraries on Windows, see |
120 | 120 | macOS |
121 | 121 | ----- |
122 | 122 |
|
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. |
126 | 125 |
|
127 | 126 | Ubuntu/Debian |
128 | 127 | ------------- |
|