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
@@ -87,7 +87,8 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
call(before_build_prepared, env=env, shell=True)
# build the wheel
call([pip, 'wheel', abs_project_dir, '-w', '/tmp/built_wheel', '--no-deps', get_build_verbosity_flag(build_verbosity)], env=env)
build_verbosity_flag = get_build_verbosity_flag(build_verbosity)
call([pip, 'wheel', abs_project_dir, '-w', '/tmp/built_wheel', '--no-deps'] + ([build_verbosity_flag] if build_verbosity_flag else []), env=env)
built_wheel = glob('/tmp/built_wheel/*.whl')[0]
if built_wheel.endswith('none-any.whl'):