summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-03-26 20:19:41 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2015-03-26 20:19:41 -0700
commit94c74d2396dc54a13fa6a7080b0895ea7372bed5 (patch)
tree18093609f3e4b74575aff2b76301389f589d0eeb /SConstruct
parent5b5b4b03f01e62e0ce423d1bb241e668f464d29d (diff)
downloadscons-94c74d2396dc54a13fa6a7080b0895ea7372bed5.tar.gz
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
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3639de85..fbc8419e 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]