Fixed a python-distutils problem with the Windows SDK

This commit is contained in:
Ray Speth 2012-02-17 20:30:15 +00:00
parent 36c5d0ff96
commit ccd0f01584

View file

@ -55,14 +55,15 @@ else:
# Install Python module in the default location
extra = ''
if 'MSSdk' in os.environ:
localenv['ENV']['DISTUTILS_USE_SDK'] = '1'
localenv['ENV']['MSSdk'] = os.environ['MSSdk']
if localenv['PYTHON_INSTALLER'] == 'direct':
inst = localenv.Command('dummy', pymodule,
'cd %s && $python_cmd setup.py install %s' % (moddir,extra))
installTargets.extend(inst)
elif localenv['PYTHON_INSTALLER'] == 'binary':
if 'MSSdk' in os.environ:
localenv['ENV']['DISTUTILS_USE_SDK'] = '1'
localenv['ENV']['MSSdk'] = os.environ['MSSdk']
inst = localenv.Command('dummy', pymodule,
'cd %s && $python_cmd setup.py bdist_msi --dist-dir=../..' % moddir)
installTargets.extend(inst)