summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-02-15 21:01:32 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2015-02-15 21:01:32 (GMT)
commitaaef35125935febb0fefe269870f9023e223a280 (patch)
tree3125c72235f4cf57abf3af4d2b867af5ea888194 /SConstruct
parentb2e68f654f456f13ad0ccefc3b09fe55475b1be1 (diff)
downloadSCons-aaef35125935febb0fefe269870f9023e223a280.zip
SCons-aaef35125935febb0fefe269870f9023e223a280.tar.gz
SCons-aaef35125935febb0fefe269870f9023e223a280.tar.bz2
Always build 32 and 64 bit versions of the windows installer. No reason to only build the native version since python can build both regardless of currrent platform
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct21
1 files changed, 12 insertions, 9 deletions
diff --git a/SConstruct b/SConstruct
index c95c0a9..6367001 100644
--- a/SConstruct
+++ b/SConstruct
@@ -730,10 +730,9 @@ for p in [ scons ]:
platform_zip = os.path.join(build,
'dist',
"%s.%s.zip" % (pkg_version, platform))
- if platform == "win-amd64":
- win32_exe = os.path.join(build, 'dist', "%s.win-amd64.exe" % pkg_version)
- else:
- win32_exe = os.path.join(build, 'dist', "%s.win32.exe" % pkg_version)
+
+ win64_exe = os.path.join(build, 'dist', "%s.win-amd64.exe" % pkg_version)
+ win32_exe = os.path.join(build, 'dist', "%s.win32.exe" % pkg_version)
#
# Update the environment with the relevant information
@@ -845,11 +844,13 @@ for p in [ scons ]:
distutils_formats = []
- distutils_targets = [ win32_exe ]
+ distutils_targets = [ win32_exe , win64_exe ]
+ dist_distutils_targets = []
- dist_distutils_targets = env.Install('$DISTDIR', distutils_targets)
- Local(dist_distutils_targets)
- AddPostAction(dist_distutils_targets, Chmod(dist_distutils_targets, 0644))
+ for target in distutils_targets:
+ dist_target = env.Install('$DISTDIR', target)
+ AddPostAction(dist_target, Chmod(dist_target, 0644))
+ dist_distutils_targets += dist_target
if not gzip:
print "gzip not found in %s; skipping .tar.gz package for %s." % (os.environ['PATH'], pkg)
@@ -1081,7 +1082,9 @@ for p in [ scons ]:
commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY sdist --formats=%s" % \
','.join(distutils_formats))
- commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_wininst --plat-name win32 --user-access-control auto")
+ commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_wininst --plat-name=win32 --user-access-control auto")
+
+ commands.append("$PYTHON $PYTHONFLAGS $SETUP_PY bdist_wininst --plat-name=win-amd64 --user-access-control auto")
env.Command(distutils_targets, build_src_files, commands)