Fixing "AttributeError: 'Popen' object has no attribute 'args'" on Python 2.7 for Linux builds
This commit is contained in:
@@ -122,15 +122,15 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
|
|||||||
if stdin_str is None:
|
if stdin_str is None:
|
||||||
subprocess.check_call(['docker'] + command)
|
subprocess.check_call(['docker'] + command)
|
||||||
else:
|
else:
|
||||||
process = subprocess.Popen(['docker'] + command,
|
args = ['docker'] + command
|
||||||
stdin=subprocess.PIPE, universal_newlines=True)
|
process = subprocess.Popen(args, stdin=subprocess.PIPE, universal_newlines=True)
|
||||||
try:
|
try:
|
||||||
process.communicate(stdin_str)
|
process.communicate(stdin_str)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
process.kill()
|
process.kill()
|
||||||
process.wait()
|
process.wait()
|
||||||
if process.returncode != 0:
|
if process.returncode != 0:
|
||||||
raise subprocess.CalledProcessError(process.returncode, process.args)
|
raise subprocess.CalledProcessError(process.returncode, args)
|
||||||
|
|
||||||
container_name = 'cibuildwheel-{}'.format(uuid.uuid4())
|
container_name = 'cibuildwheel-{}'.format(uuid.uuid4())
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user