refactor: subprocess.run (#592)
* change check_call to run * refactor: change check_output to run * Apply suggestions from code review Co-authored-by: Joe Rickerby <joerick@mac.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
58c5e56e9f
commit
d2772c2293
@@ -49,7 +49,8 @@ def get_python_configurations(
|
||||
|
||||
def build(options: BuildOptions) -> None:
|
||||
try:
|
||||
subprocess.check_output(['docker', '--version'])
|
||||
# check docker is installed
|
||||
subprocess.run(['docker', '--version'], check=True, stdout=subprocess.DEVNULL)
|
||||
except Exception:
|
||||
print('cibuildwheel: Docker not found. Docker is required to run Linux builds. '
|
||||
'If you\'re building on Travis CI, add `services: [docker]` to your .travis.yml.'
|
||||
|
||||
Reference in New Issue
Block a user