Skip to content

Commit b37cfd6

Browse files
committed
makepanda: use correct Registry key for 32-bit Python 3.5+
1 parent 412f5ec commit b37cfd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

makepanda/makepanda.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6763,10 +6763,13 @@ def MakeInstallerNSIS(file, title, installdir):
67636763
elif (os.path.isdir(file)):
67646764
shutil.rmtree(file)
67656765

6766+
pyver = SDK["PYTHONVERSION"][6:9]
67666767
if GetTargetArch() == 'x64':
67676768
regview = '64'
67686769
else:
67696770
regview = '32'
6771+
if int(pyver[0]) == 3 and int(pyver[2]) >= 5:
6772+
pyver += '-32'
67706773

67716774
if (RUNTIME):
67726775
# Invoke the make_installer script.
@@ -6799,7 +6802,7 @@ def MakeInstallerNSIS(file, title, installdir):
67996802
'OUTFILE' : '..\\' + file,
68006803
'BUILT' : '..\\' + GetOutputDir(),
68016804
'SOURCE' : '..',
6802-
'PYVER' : SDK["PYTHONVERSION"][6:9],
6805+
'PYVER' : pyver,
68036806
'REGVIEW' : regview,
68046807
'EXT_SUFFIX' : GetExtensionSuffix(),
68056808
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy