Discussion:
[Scons-users] Add python version to output of scons --version?
Bill Deegan
2018-03-21 16:33:06 UTC
Permalink
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?



-Bill
Mats Wichmann
2018-03-21 16:37:20 UTC
Permalink
Post by Bill Deegan
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.
python ~/devel/scons/git/scons-bugfixes/src/script/scons.py --version
script: v__VERSION__.__BUILD__, __DATE__, by __DEVELOPER__ on
__BUILDSYS__
engine: v__VERSION__.__BUILD__, __DATE__, by __DEVELOPER__ on
__BUILDSYS__
['/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)

Loading...