From 16afdd2bf9d38035391960d3d29e249253a8a891 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 23 Jan 2024 14:24:37 +0100 Subject: [PATCH] Prepare installer.nsi for Python 3.13 --- makepanda/installer.nsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/makepanda/installer.nsi b/makepanda/installer.nsi index fc0054b25a..cf6f7746be 100644 --- a/makepanda/installer.nsi +++ b/makepanda/installer.nsi @@ -426,6 +426,7 @@ SectionGroup "Python modules" SecGroupPython !insertmacro PyBindingSection 3.10-32 .cp310-win32.pyd !insertmacro PyBindingSection 3.11-32 .cp311-win32.pyd !insertmacro PyBindingSection 3.12-32 .cp312-win32.pyd + !insertmacro PyBindingSection 3.13-32 .cp313-win32.pyd !else !insertmacro PyBindingSection 3.5 .cp35-win_amd64.pyd !insertmacro PyBindingSection 3.6 .cp36-win_amd64.pyd @@ -435,6 +436,7 @@ SectionGroup "Python modules" SecGroupPython !insertmacro PyBindingSection 3.10 .cp310-win_amd64.pyd !insertmacro PyBindingSection 3.11 .cp311-win_amd64.pyd !insertmacro PyBindingSection 3.12 .cp312-win_amd64.pyd + !insertmacro PyBindingSection 3.13 .cp313-win_amd64.pyd !endif SectionGroupEnd @@ -546,6 +548,7 @@ Function .onInit !insertmacro MaybeEnablePyBindingSection 3.10-32 !insertmacro MaybeEnablePyBindingSection 3.11-32 !insertmacro MaybeEnablePyBindingSection 3.12-32 + !insertmacro MaybeEnablePyBindingSection 3.13-32 ${EndIf} !else !insertmacro MaybeEnablePyBindingSection 3.5 @@ -557,6 +560,7 @@ Function .onInit !insertmacro MaybeEnablePyBindingSection 3.10 !insertmacro MaybeEnablePyBindingSection 3.11 !insertmacro MaybeEnablePyBindingSection 3.12 + !insertmacro MaybeEnablePyBindingSection 3.13 ${EndIf} !endif @@ -578,6 +582,10 @@ Function .onInit SectionSetFlags ${SecPyBindings3.12} ${SF_RO} SectionSetInstTypes ${SecPyBindings3.12} 0 !endif + !ifdef SecPyBindings3.13 + SectionSetFlags ${SecPyBindings3.13} ${SF_RO} + SectionSetInstTypes ${SecPyBindings3.13} 0 + !endif ${EndUnless} FunctionEnd @@ -891,6 +899,7 @@ Section Uninstall !insertmacro RemovePythonPath 3.10-32 !insertmacro RemovePythonPath 3.11-32 !insertmacro RemovePythonPath 3.12-32 + !insertmacro RemovePythonPath 3.13-32 !else !insertmacro RemovePythonPath 3.5 !insertmacro RemovePythonPath 3.6 @@ -900,6 +909,7 @@ Section Uninstall !insertmacro RemovePythonPath 3.10 !insertmacro RemovePythonPath 3.11 !insertmacro RemovePythonPath 3.12 + !insertmacro RemovePythonPath 3.13 !endif SetDetailsPrint both @@ -977,6 +987,7 @@ SectionEnd !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.10-32} $(DESC_SecPyBindings3.10-32) !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.11-32} $(DESC_SecPyBindings3.11-32) !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.12-32} $(DESC_SecPyBindings3.12-32) + !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.13-32} $(DESC_SecPyBindings3.13-32) !else !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.5} $(DESC_SecPyBindings3.5) !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.6} $(DESC_SecPyBindings3.6) @@ -986,6 +997,7 @@ SectionEnd !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.10} $(DESC_SecPyBindings3.10) !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.11} $(DESC_SecPyBindings3.11) !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.12} $(DESC_SecPyBindings3.12) + !insertmacro MUI_DESCRIPTION_TEXT ${SecPyBindings3.13} $(DESC_SecPyBindings3.13) !endif !ifdef INCLUDE_PYVER !insertmacro MUI_DESCRIPTION_TEXT ${SecPython} $(DESC_SecPython)