From 94c74d2396dc54a13fa6a7080b0895ea7372bed5 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(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 3639de85..fbc8419e 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 v1.2.1