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 | 8e77e33c0b83baa8199e00a9f6ff5b982d7e9362 (patch) | |
tree | 18093609f3e4b74575aff2b76301389f589d0eeb | |
parent | 4c2f879e9f2a120d7469bfbc59f42eefaabfdbdd (diff) | |
download | SCons-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-- | 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] |