makepanda: use correct Registry key for 32-bit Python 3.5+

This commit is contained in:
rdb 2018-11-09 17:50:17 +01:00
parent 412f5ecc2a
commit b37cfd6573
1 changed files with 4 additions and 1 deletions

View File

@ -6763,10 +6763,13 @@ def MakeInstallerNSIS(file, title, installdir):
elif (os.path.isdir(file)):
shutil.rmtree(file)
pyver = SDK["PYTHONVERSION"][6:9]
if GetTargetArch() == 'x64':
regview = '64'
else:
regview = '32'
if int(pyver[0]) == 3 and int(pyver[2]) >= 5:
pyver += '-32'
if (RUNTIME):
# Invoke the make_installer script.
@ -6799,7 +6802,7 @@ def MakeInstallerNSIS(file, title, installdir):
'OUTFILE' : '..\\' + file,
'BUILT' : '..\\' + GetOutputDir(),
'SOURCE' : '..',
'PYVER' : SDK["PYTHONVERSION"][6:9],
'PYVER' : pyver,
'REGVIEW' : regview,
'EXT_SUFFIX' : GetExtensionSuffix(),
}