import __main__
import SCons
print "SCons by Steven Knight et al.:"
- print "\tscript: v%s.%s, %s, by %s on %s" % (__main__.__version__,
- __main__.__build__,
- __main__.__date__,
- __main__.__developer__,
- __main__.__buildsys__)
+ try:
+ print "\tscript: v%s.%s, %s, by %s on %s" % (__main__.__version__,
+ __main__.__build__,
+ __main__.__date__,
+ __main__.__developer__,
+ __main__.__buildsys__)
+ except:
+ # On win32 there is no scons.py, so there is no __main__.__version__,
+ # hence there is no script version.
+ pass
print "\tengine: v%s.%s, %s, by %s on %s" % (SCons.__version__,
SCons.__build__,
SCons.__date__,
test.write('SConstruct', "")
-expect = r"""SCons by Steven Knight et al.:
+if sys.platform == 'win32':
+ expect = r"""SCons by Steven Knight et al.:
+\tengine: v\S+, [^,]*, by \S+ on \S+
+Copyright 2001, 2002 Steven Knight
+"""
+else:
+ expect = r"""SCons by Steven Knight et al.:
\tscript: v\S+, [^,]*, by \S+ on \S+
\tengine: v\S+, [^,]*, by \S+ on \S+
Copyright 2001, 2002 Steven Knight