Skip to content

Commit

Permalink
Add Python 3.12 to Windows .exe installer
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Oct 28, 2023
1 parent 2f40b36 commit da7604f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ChangeLog {#changelog}
# HEAD
- We no longer provide packages for Ubuntu 18.04 LTS (Bionic Beaver), as it
reached end of life in May 2023.
- The Windows .exe installer now supports Python 3.12.

# 2.19.0 - 2023-06-22 # {#changelog_2_19_0}
- Most IMP Value and Object types can now be serialized (or pickled in Python).
Expand Down
8 changes: 4 additions & 4 deletions tools/w32/make-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# make DESTDIR=`pwd`/w32-inst install
#
# Where $w32py is the path containing Python headers and libraries.
# Repeat for all desired Python versions (3.6, 3.7, 3.8, 3.9, 3.10 and 3.11
# for us)
# Repeat for all desired Python versions (3.6, 3.7, 3.8, 3.9, 3.10, 3.11,
# and 3.12 for us)
#
# Then run (still in the binary directory)
# <source_dir>/tools/w32/make-package.sh <version> <bits>
Expand Down Expand Up @@ -87,7 +87,7 @@ for app in ${ROOT}/bin/*; do
done

# Make Python version-specific directories for extensions (.pyd)
PYVERS="3.6 3.7 3.8 3.9 3.10 3.11"
PYVERS="3.6 3.7 3.8 3.9 3.10 3.11 3.12"
for PYVER in ${PYVERS}; do
mkdir ${ROOT}/python/python${PYVER} || exit 1
mkdir ${ROOT}/python/python${PYVER}/_ihm_pyd || exit 1
Expand All @@ -114,7 +114,7 @@ rm -rf ${ROOT}/bin/imp_example_app.exe \
# Remove any .svn directories
rm -rf `find ${ROOT} -name .svn`

PYVERS="36 37 38 39 310 311"
PYVERS="36 37 38 39 310 311 312"
if [ "${BITS}" = "32" ]; then
MAKENSIS="makensis"
DLLSRC=/usr/lib/w32comp/windows/system
Expand Down
2 changes: 2 additions & 0 deletions tools/w32/w32-install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Section ""
WriteRegStr HKLM "Software\Python\PythonCore\3.9${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}" "" "$INSTDIR\python"
WriteRegStr HKLM "Software\Python\PythonCore\3.10${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}" "" "$INSTDIR\python"
WriteRegStr HKLM "Software\Python\PythonCore\3.11${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}" "" "$INSTDIR\python"
WriteRegStr HKLM "Software\Python\PythonCore\3.12${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}" "" "$INSTDIR\python"

!insertmacro MUI_STARTMENU_WRITE_BEGIN ${PRODVER}
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
Expand Down Expand Up @@ -121,6 +122,7 @@ Section "Uninstall"
DeleteRegKey HKLM "Software\Python\PythonCore\3.9${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}"
DeleteRegKey HKLM "Software\Python\PythonCore\3.10${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}"
DeleteRegKey HKLM "Software\Python\PythonCore\3.11${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}"
DeleteRegKey HKLM "Software\Python\PythonCore\3.12${PYTHON_ARCH_SUFFIX}\PythonPath\${PRODVER}"

SectionEnd

Expand Down

0 comments on commit da7604f

Please sign in to comment.