1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
6 def update_init_file(env
):
8 '__version__': env
['VERSION'],
9 "__copyright__": env
['COPYRIGHT'],
10 "__developer__": env
['DEVELOPER'],
11 "__date__": env
['DATE'],
12 "__buildsys__": env
['BUILDSYS'],
13 "__revision__": env
['REVISION'],
14 "__build__": env
['BUILD'],
18 ["%s=\"%s\"" % (k
, v
) for k
, v
in substitutions
.items()]
20 '# make sure compatibility is always in place',
21 'import SCons.compat # noqa',
25 env
.NoClean(si
) # Don't clean this file as it breaks the build.