From a448c02d7fb3dfcd213e0678e08cd8d43986f737 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Mon, 1 Oct 2018 15:04:44 +0200 Subject: [PATCH] Fixing "AttributeError: 'Popen' object has no attribute 'args'" on Python 2.7 for Linux builds --- cibuildwheel/linux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index ee221443..1613d120 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -122,15 +122,15 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be if stdin_str is None: subprocess.check_call(['docker'] + command) else: - process = subprocess.Popen(['docker'] + command, - stdin=subprocess.PIPE, universal_newlines=True) + args = ['docker'] + command + process = subprocess.Popen(args, stdin=subprocess.PIPE, universal_newlines=True) try: process.communicate(stdin_str) except KeyboardInterrupt: process.kill() process.wait() if process.returncode != 0: - raise subprocess.CalledProcessError(process.returncode, process.args) + raise subprocess.CalledProcessError(process.returncode, args) container_name = 'cibuildwheel-{}'.format(uuid.uuid4()) try: