Adding an to make the pip wheel invocation more or less verbose

This commit is contained in:
Yannick Jadoul
2018-04-08 21:37:40 +02:00
parent 71503b7143
commit c563bca054
6 changed files with 37 additions and 9 deletions
+3 -3
View File
@@ -7,10 +7,10 @@ except ImportError:
from collections import namedtuple
from glob import glob
from .util import prepare_command, Unbuffered
from .util import prepare_command, get_build_verbosity_flag, Unbuffered
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, skip, environment):
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, skip, environment):
# Python under AppVeyor/Windows seems to be buffering by default, giving problems interleaving subprocess call output with unflushed calls to 'print'
sys.stdout.flush()
sys.stdout = Unbuffered(sys.stdout)
@@ -82,7 +82,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
shell([before_build_prepared], env=env)
# build the wheel
shell(['pip', 'wheel', abs_project_dir, '-w', built_wheel_dir, '--no-deps'], env=env)
shell(['pip', 'wheel', abs_project_dir, '-w', built_wheel_dir, '--no-deps', get_build_verbosity_flag(build_verbosity)], env=env)
built_wheel = glob(built_wheel_dir+'/*.whl')[0]
# install the wheel