8000 Merge pull request #14568 from mattip/hide-config-probe2 · numpy/numpy@c8fdb44 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8fdb44

Browse files
authored
Merge pull request #14568 from mattip/hide-config-probe2
BLD, DOC: fix gh-14518, add release note
2 parents a352b1a + aa0f7f7 commit c8fdb44

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Add options to quiet build configuration and build with ``-Werror``
2+
-------------------------------------------------------------------
3+
Added two new configuration options. During the ``build_src`` subcommand, as
4+
part of configuring NumPy, the files ``_numpyconfig.h`` and ``config.h`` are
5+
created by probing support for various runtime functions and routines.
6+
Previously, the very verbose compiler output during this stage clouded more
7+
important information. By default the output is silenced. Running ``runtests.py
8+
--debug-configure`` will add ``-v`` to the ``build_src`` subcommand, which
9+
will restore the previous behaviour.
10+
11+
Adding ``CFLAGS=-Werror`` to turn warnings into errors would trigger errors
12+
during the configuration. Now ``runtests.py --warn-error`` will add
13+
``--warn-error`` to the ``build`` subcommand, which will percolate to the
14+
``build_ext`` and ``build_lib`` subcommands. This will add the compiler flag
15+
to those stages and turn compiler warnings into errors while actually building
16+
NumPy itself, avoiding the ``build_src`` subcommand compiler calls.
17+
18+
(`gh-14527 <https://github.com/numpy/numpy/pull/14527>`__)

numpy/distutils/command/build_src.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def initialize_options(self):
7979
self.swig_opts = None
8080
self.swig_cpp = None
8181
self.swig = None
82-
self.verbose = False
82+
self.verbose = None
8383

8484
def finalize_options(self):
8585
self.set_undefined_options('build',

0 commit comments

Comments
 (0)
0