diff options
author | Nick R. Papior <nickpapior@gmail.com> | 2020-09-17 12:29:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 12:29:38 +0200 |
commit | 233c63a56974de22b846ac989cef1fabe45e7296 (patch) | |
tree | 1ec1cd1f4b606603fbf3035422070eb581857e7e /doc/release | |
parent | 60a1e10c4593736b188b38e7d7c51aefb213af6a (diff) | |
download | numpy-233c63a56974de22b846ac989cef1fabe45e7296.tar.gz |
BLD: enabled negation of library choices in NPY_*_ORDER (#17219)
BLD: enabled negation of library choices in NPY_*_ORDER
When users build for a particular order it may be beneficial
to disallow certain libraries.
In particular a user may not care about which accelerated
BLAS library is used, so long as the NetLIB or ATLAS library isn't used.
This is now possible with:
NPY_BLAS_ORDER='^blas,atlas'
or
NPY_BLAS_ORDER='!blas,atlas'
Since we may envision more BLAS/LAPACK libraries to the pool, this
will provide greater flexibility as they enter.
A new (local) method is added in system_info.py which removes duplicate
code and allows for easier usage across libraries.
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/17219.new_feature.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/17219.new_feature.rst b/doc/release/upcoming_changes/17219.new_feature.rst new file mode 100644 index 000000000..a6985ef0d --- /dev/null +++ b/doc/release/upcoming_changes/17219.new_feature.rst @@ -0,0 +1,12 @@ +Negation of user-defined BLAS/LAPACK detection order +---------------------------------------------------- +`distutils` allows negation of libraries when determining BLAS/LAPACK +libraries. +This may be used to remove an item from the library resolution phase, i.e. +to disallow NetLIB libraries one could do:: + +.. code:: bash + + NPY_BLAS_ORDER='^blas' NPY_LAPACK_ORDER='^lapack' python setup.py build + +which will use any of the accelerated libraries instead. |