Fixed a python-distutils problem with the Windows SDK
This commit is contained in:
parent
36c5d0ff96
commit
ccd0f01584
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue