Neaten the environment modification using triple-quotes and dict.update

This commit is contained in:
Joe Rickerby
2019-04-22 23:23:49 +01:00
parent 857aafbd3f
commit 9050137d2b
5 changed files with 23 additions and 13 deletions
+4 -2
View File
@@ -11,8 +11,10 @@ def test():
env = os.environ.copy()
# change the docker images to use. The docker image is tested in setup.py
# during the build
env['CIBW_MANYLINUX1_X86_64_IMAGE'] = 'dockcross/manylinux-x64'
env['CIBW_MANYLINUX1_I686_IMAGE'] = 'dockcross/manylinux-x86'
env.update({
'CIBW_MANYLINUX1_X86_64_IMAGE': 'dockcross/manylinux-x64',
'CIBW_MANYLINUX1_I686_IMAGE': 'dockcross/manylinux-x86',
})
# build the wheels
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)