Skip to content

Commit

Permalink
Fixing empty verbosity flag argument to subprocess.check_call
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Apr 8, 2018
1 parent c563bca commit 8d9d970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def call(args, env=None, cwd=None, shell=False):
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'):
Expand Down
3 changes: 2 additions & 1 deletion cibuildwheel/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def shell(args, env=None, cwd=None):
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
Expand Down

0 comments on commit 8d9d970

Please sign in to comment.