summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-18 01:26:24 (GMT)
committerSteven Knight <knight@baldmt.com>2002-06-18 01:26:24 (GMT)
commit81953156f0c5075d21b9d1573ead1f2e482482a6 (patch)
treed07009f3e280d8d169e35abd702e720bb4e3a869 /src
parent77d43537975b406379979d599894971bf4a225f2 (diff)
downloadSCons-81953156f0c5075d21b9d1573ead1f2e482482a6.zip
SCons-81953156f0c5075d21b9d1573ead1f2e482482a6.tar.gz
SCons-81953156f0c5075d21b9d1573ead1f2e482482a6.tar.bz2
Supply more specific version info, including build date.
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt2
-rw-r--r--src/engine/SCons/Platform/__init__.py2
-rw-r--r--src/engine/SCons/Scanner/__init__.py2
-rw-r--r--src/engine/SCons/Script/__init__.py17
-rw-r--r--src/engine/SCons/__init__.py8
-rw-r--r--src/script/scons.py14
6 files changed, 36 insertions, 9 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index c186d6a..63feea2 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -59,6 +59,8 @@ RELEASE 0.08 -
- Fix C #include scanning to detect file names with characters like
'-' in them.
+ - Add more specific version / build output to the -v option.
+
From Jeff Petkau:
- Fix --implicit-cache if the scanner returns an empty list.
diff --git a/src/engine/SCons/Platform/__init__.py b/src/engine/SCons/Platform/__init__.py
index 201a1b9..a519142 100644
--- a/src/engine/SCons/Platform/__init__.py
+++ b/src/engine/SCons/Platform/__init__.py
@@ -44,8 +44,6 @@ their own platform definition.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-__version__ = "__VERSION__"
-
import imp
import os
import sys
diff --git a/src/engine/SCons/Scanner/__init__.py b/src/engine/SCons/Scanner/__init__.py
index b2e04a3..28159c9 100644
--- a/src/engine/SCons/Scanner/__init__.py
+++ b/src/engine/SCons/Scanner/__init__.py
@@ -29,8 +29,6 @@ The Scanner package for the SCons software construction utility.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-__version__ = "__VERSION__"
-
import SCons.Node.FS
import SCons.Util
diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py
index 879f6d1..3471190 100644
--- a/src/engine/SCons/Script/__init__.py
+++ b/src/engine/SCons/Script/__init__.py
@@ -52,7 +52,9 @@ import copy
# "SCons" package. Replace it with our own version directory so, if
# if they're there, we pick up the right version of the build engine
# modules.
-sys.path = [os.path.join(sys.prefix, 'lib', 'scons-__VERSION__')] + sys.path[1:]
+#sys.path = [os.path.join(sys.prefix,
+# 'lib',
+# 'scons-%d' % SCons.__version__)] + sys.path[1:]
import SCons.Node
import SCons.Node.FS
@@ -673,10 +675,19 @@ def options_init():
"build Default() targets from local SConscript."])
def option_v(opt, arg):
+ import __main__
import SCons
print "SCons by Steven Knight et al.:"
- print "\tscript version __VERSION__"
- print "\tbuild engine version %s" % SCons.__version__
+ print "\tscript: v%s.%s, %s, by %s on %s" % (__main__.__version__,
+ __main__.__build__,
+ __main__.__date__,
+ __main__.__developer__,
+ __main__.__buildsys__)
+ print "\tengine: v%s.%s, %s, by %s on %s" % (SCons.__version__,
+ SCons.__build__,
+ SCons.__date__,
+ SCons.__developer__,
+ SCons.__buildsys__)
print "Copyright 2001, 2002 Steven Knight"
sys.exit(0)
diff --git a/src/engine/SCons/__init__.py b/src/engine/SCons/__init__.py
index a3bcfde..e4d1464 100644
--- a/src/engine/SCons/__init__.py
+++ b/src/engine/SCons/__init__.py
@@ -30,3 +30,11 @@ The main package for the SCons software construction utility.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
__version__ = "__VERSION__"
+
+__build__ = "__BUILD__"
+
+__buildsys__ = "__BUILDSYS__"
+
+__date__ = "__DATE__"
+
+__developer__ = "__DEVELOPER__"
diff --git a/src/script/scons.py b/src/script/scons.py
index 8e64d1d..b42ed42 100644
--- a/src/script/scons.py
+++ b/src/script/scons.py
@@ -26,6 +26,16 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+__version__ = "__VERSION__"
+
+__build__ = "__BUILD__"
+
+__buildsys__ = "__BUILDSYS__"
+
+__date__ = "__DATE__"
+
+__developer__ = "__DEVELOPER__"
+
import sys
import os.path
import os
@@ -47,7 +57,7 @@ if os.environ.has_key("SCONS_LIB_DIR"):
libs.append(os.environ["SCONS_LIB_DIR"])
if sys.platform == 'win32':
- libs.extend([ os.path.join(sys.prefix, 'SCons-__VERSION__'),
+ libs.extend([ os.path.join(sys.prefix, 'SCons-%s' % __version__),
os.path.join(sys.prefix, 'SCons') ])
else:
prefs = []
@@ -76,7 +86,7 @@ else:
else:
prefs.append(sys.prefix)
- libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons-__VERSION__'), prefs))
+ libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons-%s' % __version__), prefs))
libs.extend(map(lambda x: os.path.join(x, 'lib', 'scons'), prefs))
sys.path = libs + sys.path[1:]