From b37cfd65736619ff6b7644f6489e353b399e5663 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 9 Nov 2018 17:50:17 +0100 Subject: [PATCH] makepanda: use correct Registry key for 32-bit Python 3.5+ --- makepanda/makepanda.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 1387d2e11f..694681db00 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -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(), }