diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-03-27 03:19:41 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-03-27 03:19:41 (GMT) |
commit | 46536adb150648780c0f79cc26390376a386894f (patch) | |
tree | 18093609f3e4b74575aff2b76301389f589d0eeb /SConstruct | |
parent | 61977094ad7569d2a594bd8a9538d0e99079b6b1 (diff) | |
download | SCons-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
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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] |