mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Build a Python 3.9.13 framework instead of 3.10.x to avoid issue #1136
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
TOOLSDIR=$(dirname "$0")
|
||||
REQUIREMENTS="${TOOLSDIR}/py3_requirements.txt"
|
||||
PYTHON_VERSION=3.10.4
|
||||
PYTHON_VERSION=3.9.13
|
||||
PYTHON_PRERELEASE_VERSION=
|
||||
PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s${PYTHON_PRERELEASE_VERSION}-macos%s.pkg"
|
||||
MACOS_VERSION=11
|
||||
@@ -71,9 +71,9 @@ if [ "$LIB_COUNT" != "$UNIVERSAL_COUNT" ] ; then
|
||||
fi
|
||||
|
||||
# test some more files in the framework
|
||||
MORE_FILES="Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python
|
||||
MORE_FILES="Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
|
||||
Python.framework/Versions/Current/Python
|
||||
Python.framework/Versions/Current/bin/python3.10"
|
||||
Python.framework/Versions/Current/bin/python3.9"
|
||||
|
||||
for TESTFILE in $MORE_FILES ; do
|
||||
ARCH_TEST=$(file "${MUNKIROOT}/$TESTFILE" | grep "2 architectures")
|
||||
|
||||
@@ -8,7 +8,7 @@ if [ -f "/usr/local/munki/python" ]; then
|
||||
fi
|
||||
|
||||
# sometimes old versions are left behind in the framework. remove them.
|
||||
for OLDVERS in 3.7 3.8 3.9 ; do
|
||||
for OLDVERS in 3.7 3.8 ; do
|
||||
if [ -d "/usr/local/munki/Python.framework/Versions/${OLDVERS}" ]; then
|
||||
/bin/rm -r "/usr/local/munki/Python.framework/Versions/${OLDVERS}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user