diff options
author | mattip <matti.picus@gmail.com> | 2019-09-16 18:06:28 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-09-20 09:35:48 +0300 |
commit | cdf67fa06298ce7fd6ee909b7777dc77c0cfa49f (patch) | |
tree | 858fdad5037274e9ebcdaf677ebe707cf66b1f19 /numpy/distutils/command/build_src.py | |
parent | 55df75a9402a8b3550eedc243bcf24c0b785c52b (diff) | |
download | numpy-cdf67fa06298ce7fd6ee909b7777dc77c0cfa49f.tar.gz |
MAINT: move the option to build_src, simplifies logic
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r-- | numpy/distutils/command/build_src.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py index 22e2dbf52..664b52e37 100644 --- a/numpy/distutils/command/build_src.py +++ b/numpy/distutils/command/build_src.py @@ -53,9 +53,12 @@ class build_src(build_ext.build_ext): ('inplace', 'i', "ignore build-lib and put compiled extensions into the source " + "directory alongside your pure Python modules"), + ('verbose', 'v', + "change logging level from WARN to INFO which will show all " + + "compiler output") ] - boolean_options = ['force', 'inplace'] + boolean_options = ['force', 'inplace', 'verbose'] help_options = [] @@ -76,6 +79,7 @@ class build_src(build_ext.build_ext): self.swig_opts = None self.swig_cpp = None self.swig = None + self.verbose = False def finalize_options(self): self.set_undefined_options('build', @@ -366,9 +370,7 @@ class build_src(build_ext.build_ext): +name.split('.')[:-1])) self.mkpath(build_dir) - # it is unclear how to pass the cmdline options from build to here so - # "parse" the command line again - if '--debug-configure' in sys.argv: + if self.verbose: new_level = log.INFO else: new_level = log.WARN |