fix python 3 support
+ urllib2 doesn't exist in python 3 - import from urllib.request instead + for linux builds open docker process with universal_newlines; this opens a pipe in 'text' mode using the default preferred encoding
This commit is contained in:
@@ -101,7 +101,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
|
||||
'-v', '%s:/output' % os.path.abspath(output_dir),
|
||||
docker_image,
|
||||
'/bin/bash'],
|
||||
stdin=subprocess.PIPE)
|
||||
stdin=subprocess.PIPE, universal_newlines=True)
|
||||
|
||||
docker_process.communicate(bash_script)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user