[Scons-users] Add python version to output of scons --version?
Mats Wichmann
mats at wichmann.us
Wed Mar 21 12:37:20 EDT 2018
On 03/21/2018 10:33 AM, Bill Deegan wrote:
> Greetings,
>
> I'm thinking given that we're supporting py2.7 and 3.5+ it's probably
> valuable to add outputting the python version in the output from scons
> --version.
>
> Something like:
> python ~/devel/scons/git/scons-bugfixes/src/script/scons.py --version
> SCons by Steven Knight et al.:
> script: v__VERSION__.__BUILD__, __DATE__, by __DEVELOPER__ on
> __BUILDSYS__
> engine: v__VERSION__.__BUILD__, __DATE__, by __DEVELOPER__ on
> __BUILDSYS__
> engine path:
> ['/Users/bdbaddog/devel/scons/git/scons-bugfixes/src/script/../engine/SCons']
> python version: 2.7.14
> or
> python version: 2.7.14 (default, Sep 22 2017, 00:06:07) \n[GCC 4.2.1
> Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
> __COPYRIGHT__
>
>
> Any thoughts?
you're not going to find me objecting too loudly, since my SConstruct
dumps both the scons version and python version, so they'll be right
there in the build log (our ci system runs many different builds on many
different platforms, meaning it's useful info when something goes wrong
- though we've finally got the Ubuntu 12.04 builders running scons 2.1
or some such dumped out of the system, getting us out of one set of
headaches)
More information about the Scons-users
mailing list