summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-03-27 03:19:41 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2015-03-27 03:19:41 (GMT)
commit8e77e33c0b83baa8199e00a9f6ff5b982d7e9362 (patch)
tree18093609f3e4b74575aff2b76301389f589d0eeb
parent4c2f879e9f2a120d7469bfbc59f42eefaabfdbdd (diff)
downloadSCons-8e77e33c0b83baa8199e00a9f6ff5b982d7e9362.zip
SCons-8e77e33c0b83baa8199e00a9f6ff5b982d7e9362.tar.gz
SCons-8e77e33c0b83baa8199e00a9f6ff5b982d7e9362.tar.bz2
logic to automatically detect if the wininst*.exe is in the python install, and skip building windows packages if it's not possible on this platform
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3639de8..fbc8419 100644
--- a/SConstruct
+++ b/SConstruct
@@ -173,6 +173,11 @@ if build_id is None:
build_id = ''
skip_win_packages = ARGUMENTS.get('SKIP_WIN_PACKAGES',False)
+import os.path
+import distutils.command
+
+skip_win_packages = not os.path.exists(os.path.join(os.path.split(distutils.command.__file__)[0],'wininst-9.0.exe'))
+print "Skip_win_packages:%s"%skip_win_packages
python_ver = sys.version[0:3]