Fixing empty verbosity flag argument to subprocess.check_call

This commit is contained in:
Yannick Jadoul
2018-04-08 21:51:19 +02:00
parent c563bca054
commit 8d9d970874
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ 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', get_build_verbosity_flag(build_verbosity)], env=env)
build_verbosity_flag = get_build_verbosity_flag(build_verbosity)
shell(['pip', 'wheel', abs_project_dir, '-w', built_wheel_dir, '--no-deps'] + ([build_verbosity_flag] if build_verbosity_flag else []), env=env)
built_wheel = glob(built_wheel_dir+'/*.whl')[0]
# install the wheel