From 46536adb150648780c0f79cc26390376a386894f Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 26 Mar 2015 20:19:41 -0700 Subject: 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 --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) 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] -- cgit v0.12