diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-03-26 20:19:41 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-03-26 20:19:41 -0700 |
commit | 94c74d2396dc54a13fa6a7080b0895ea7372bed5 (patch) | |
tree | 18093609f3e4b74575aff2b76301389f589d0eeb /SConstruct | |
parent | 5b5b4b03f01e62e0ce423d1bb241e668f464d29d (diff) | |
download | scons-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-- | 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] |