summaryrefslogtreecommitdiffstats
path: root/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-06-30 20:23:18 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-06-30 20:23:18 (GMT)
commita61be899bd0c0e5038bcbf361873f494a0e0dd70 (patch)
treeff95fe89b656040c99054f9d8fe64870f6c5f681 /SCons
parentf2fb4bb5449c1375c0cbde5d15f674a168f2b3bf (diff)
downloadSCons-a61be899bd0c0e5038bcbf361873f494a0e0dd70.zip
SCons-a61be899bd0c0e5038bcbf361873f494a0e0dd70.tar.gz
SCons-a61be899bd0c0e5038bcbf361873f494a0e0dd70.tar.bz2
All working except automatic build of wheel and sdist package
Diffstat (limited to 'SCons')
-rw-r--r--SCons/Script/Main.py7
-rw-r--r--SCons/Tool/textfile.py4
-rw-r--r--SCons/__init__.py56
3 files changed, 13 insertions, 54 deletions
diff --git a/SCons/Script/Main.py b/SCons/Script/Main.py
index d7b07a2..7aa3779 100644
--- a/SCons/Script/Main.py
+++ b/SCons/Script/Main.py
@@ -1371,14 +1371,13 @@ def main():
parts = ["SCons by Steven Knight et al.:\n"]
try:
import __main__
- parts.append(version_string("script", __main__))
+ parts.append(version_string("SCons", __main__))
except (ImportError, AttributeError):
# On Windows there is no scons.py, so there is no
# __main__.__version__, hence there is no script version.
pass
- parts.append(version_string("engine", SCons))
- parts.append(path_string("engine", SCons))
- parts.append("__COPYRIGHT__")
+ parts.append(path_string("SCons", SCons))
+ parts.append(SCons.__copyright__)
version = ''.join(parts)
from . import SConsOptions
diff --git a/SCons/Tool/textfile.py b/SCons/Tool/textfile.py
index b404304..bb8a0f9 100644
--- a/SCons/Tool/textfile.py
+++ b/SCons/Tool/textfile.py
@@ -124,8 +124,8 @@ def _action(target, source, env):
# write the file
try:
target_file = open(target[0].get_path(), TEXTFILE_FILE_WRITE_MODE, newline='')
- except (OSError, IOError):
- raise SCons.Errors.UserError("Can't write target file %s" % target[0])
+ except (OSError, IOError) as e:
+ raise SCons.Errors.UserError("Can't write target file %s [%s]" % (target[0],e))
# separate lines by 'linesep' only if linesep is not empty
lsep = None
diff --git a/SCons/__init__.py b/SCons/__init__.py
index 532f07b..9e12a3f 100644
--- a/SCons/__init__.py
+++ b/SCons/__init__.py
@@ -1,49 +1,9 @@
-"""SCons
-
-The main package for the SCons software construction utility.
-
-"""
-
-#
-# __COPYRIGHT__
-#
-# Permission is hereby granted, free of charge, to any person obtaining
-# a copy of this software and associated documentation files (the
-# "Software"), to deal in the Software without restriction, including
-# without limitation the rights to use, copy, modify, merge, publish,
-# distribute, sublicense, and/or sell copies of the Software, and to
-# permit persons to whom the Software is furnished to do so, subject to
-# the following conditions:
-#
-# The above copyright notice and this permission notice shall be included
-# in all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
-# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
-# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-
-__version__ = "__VERSION__"
-
-__build__ = "__BUILD__"
-
-__buildsys__ = "__BUILDSYS__"
-
-__date__ = "__DATE__"
-
-__developer__ = "__DEVELOPER__"
-__copyright__ = "COPYRIGHT"
+__VERSION__="3.9.9a996"
+__copyright__="Copyright (c) 2001 - 2020 The SCons Foundation"
+__DEVELOPER__="bdbaddog"
+__DATE__="2020-06-30 20:17:38"
+__BUILDSYS__="ProDog2020"
+__REVISION__="f2fb4bb5449c1375c0cbde5d15f674a168f2b3bf"
+__BUILD__="f2fb4bb5449c1375c0cbde5d15f674a168f2b3bf"
# make sure compatibility is always in place
-import SCons.compat
-
-# Local Variables:
-# tab-width:4
-# indent-tabs-mode:nil
-# End:
-# vim: set expandtab tabstop=4 shiftwidth=4:
+import SCons.compat \ No newline at end of file