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)
commit46536adb150648780c0f79cc26390376a386894f (patch)
tree18093609f3e4b74575aff2b76301389f589d0eeb
parent61977094ad7569d2a594bd8a9538d0e99079b6b1 (diff)
downloadSCons-46536adb150648780c0f79cc26390376a386894f.zip
SCons-46536adb150648780c0f79cc26390376a386894f.tar.gz
SCons-46536adb150648780c0f79cc26390376a386894f.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]