Skip to content

Commit ae24aa8

Browse files
authored
Add ALIBUILD_VERSION to the prefer_system_check environment (#1002)
1 parent 59e128d commit ae24aa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

alibuild_helpers/build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,10 @@ def doBuild(args, parser):
506506

507507
install_wrapper_script("git", workDir)
508508

509-
extra_env = {"ALIBUILD_CONFIG_DIR": "/alidist" if args.docker else os.path.abspath(args.configDir)}
509+
extra_env = {
510+
"ALIBUILD_CONFIG_DIR": "/alidist" if args.docker else os.path.abspath(args.configDir),
511+
"ALIBUILD_VERSION": __version__ or "unknown"
512+
}
510513
extra_env.update(dict([e.partition('=')[::2] for e in args.environment]))
511514

512515
with DockerRunner(args.dockerImage, args.docker_extra_args, extra_env=extra_env, extra_volumes=[f"{os.path.abspath(args.configDir)}:/alidist:ro"] if args.docker else []) as getstatusoutput_docker:

0 commit comments

Comments
 (0)