summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2016-04-10 09:41:00 (GMT)
committerRussel Winder <russel@winder.org.uk>2016-04-10 09:41:00 (GMT)
commit6a37189174372c9c98c63ada58ab4352adf650e8 (patch)
tree521ddb1071569fa90100e11d7f03af13d5689aaf /SConstruct
parent14924bcc1713c5bd7dcf4db5b420204407048889 (diff)
parent3e0a831c7fcd60384266e14641a3a15f2cba1ced (diff)
downloadSCons-6a37189174372c9c98c63ada58ab4352adf650e8.zip
SCons-6a37189174372c9c98c63ada58ab4352adf650e8.tar.gz
SCons-6a37189174372c9c98c63ada58ab4352adf650e8.tar.bz2
Commit resolved conflicted merge.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 6 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct
index 1616fc2..5eded92 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5,10 +5,10 @@
from __future__ import print_function
-copyright_years = '2001 - 2015'
+copyright_years = '2001 - 2016'
# This gets inserted into the man pages to reflect the month of release.
-month_year = 'MONTH YEAR'
+month_year = 'April 2016'
#
# __COPYRIGHT__
@@ -45,7 +45,7 @@ import tempfile
import bootstrap
project = 'scons'
-default_version = '2.4.2.alpha.yyyymmdd'
+default_version = '2.5.0'
copyright = "Copyright (c) %s The SCons Foundation" % copyright_years
platform = distutils.util.get_platform()
@@ -371,7 +371,7 @@ def SCons_revision(target, source, env):
"""
t = str(target[0])
s = source[0].rstr()
- contents = open(s, 'r').read()
+ contents = open(s, 'rb').read()
# Note: We construct the __*__ substitution strings here
# so that they don't get replaced when this file gets
# copied into the tree for packaging.
@@ -385,7 +385,7 @@ def SCons_revision(target, source, env):
contents = contents.replace('__REVISION' + '__', env['REVISION'])
contents = contents.replace('__VERSION' + '__', env['VERSION'])
contents = contents.replace('__NULL' + '__', '')
- open(t, 'w').write(contents)
+ open(t, 'wb').write(contents)
os.chmod(t, os.stat(s)[0])
revaction = SCons_revision
@@ -419,7 +419,6 @@ def soelim(target, source, env):
def soscan(node, env, path):
c = node.get_text_contents()
- # Node contents are bytes ==> br"..."
return re.compile(br"^[\.']so\s+(\S+)", re.M).findall(c)
soelimbuilder = Builder(action = Action(soelim),
@@ -830,7 +829,7 @@ for p in [ scons ]:
def write_src_files(target, source, **kw):
global src_files
src_files.sort()
- f = open(str(target[0]), 'w')
+ f = open(str(target[0]), 'wb')
for file in src_files:
f.write(file + "\n")
f.close()