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
View File
@@ -39,6 +39,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
'/Library/Frameworks/Python.framework/Versions/%s/bin' % config.version,
env['PATH'],
])
env = environment.as_dictionary(prev_environment=env)
python = 'python3' if config.version[0] == '3' else 'python2'
pip = 'pip3' if config.version[0] == '3' else 'pip2'