Use parse_environment in the main code

This commit is contained in:
Joe Rickerby
2017-09-01 13:33:29 +01:00
parent 9091533fcc
commit fcb681d283
5 changed files with 17 additions and 11 deletions
+1 -3
View File
@@ -108,9 +108,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
before_build=shlex_quote(
prepare_command(before_build, python='python', pip='pip') if before_build else ''
),
environment_exports=' '.join(
('export %s=%s\n' % (key, shlex_quote(value)) for key, value in environment.items())
),
environment_exports='\n'.join(environment.as_shell_commands()),
)
docker_process = subprocess.Popen([