add environment evaluation

This commit is contained in:
Grzegorz Bokota
2020-06-22 13:55:04 +02:00
parent 3fe560cf14
commit c1f155c0f2
6 changed files with 24 additions and 5 deletions
+2 -1
View File
@@ -177,8 +177,9 @@ def build(options: BuildOptions) -> None:
repaired_wheel_dir = temp_dir / 'repaired_wheel'
if options.before_all:
env = options.environment.as_dictionary(prev_environment=os.environ)
before_all_prepared = prepare_command(options.before_all, project='.', package=options.package_dir)
call([before_all_prepared], shell=True)
call([before_all_prepared], shell=True, env=env)
python_configurations = get_python_configurations(options.build_selector)