try and fix managed_python3 issue
This commit is contained in:
1 parent
b6959b9227
commit
f23b147e49
1 file changed
+21
-20
@@ -137,6 +137,26 @@ else
|
|||||||
/usr/bin/sudo /usr/sbin/chown -R ${CONSOLEUSER}:wheel "$TOOLSDIR/$TYPE"
|
/usr/bin/sudo /usr/sbin/chown -R ${CONSOLEUSER}:wheel "$TOOLSDIR/$TYPE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# make a symbolic link to help with interactive use
|
||||||
|
if [[ "${PYTHON_MAJOR_VERSION}" == "3.9" ]]; then
|
||||||
|
/bin/ln -s "$PYTHON_BIN" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
||||||
|
fi
|
||||||
|
if [[ "${PYTHON_MAJOR_VERSION}" == "3.10" ]]; then
|
||||||
|
/bin/ln -s "$PYTHON_BIN" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
||||||
|
fi
|
||||||
|
if [[ "${PYTHON_MAJOR_VERSION}" == "3.11" ]]; then
|
||||||
|
/bin/cp "$TOOLSDIR/python-$PYTHON_MAJOR_VERSION" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
||||||
|
fi
|
||||||
|
if [[ "${PYTHON_MAJOR_VERSION}" == "3.12" ]]; then
|
||||||
|
/bin/cp "$TOOLSDIR/python-$PYTHON_MAJOR_VERSION" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SB_RESULT="$?"
|
||||||
|
if [ "${SB_RESULT}" != "0" ]; then
|
||||||
|
echo "Failed create managed_python3 object" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# build the framework
|
# build the framework
|
||||||
# Force the C path depending on the version of Python to allow tools like cffi/xattr to build without wheels otherwise it errors
|
# Force the C path depending on the version of Python to allow tools like cffi/xattr to build without wheels otherwise it errors
|
||||||
# Can't use Apple's headers for 3.10 and higher as they are (currently) 3.9
|
# Can't use Apple's headers for 3.10 and higher as they are (currently) 3.9
|
||||||
@@ -160,26 +180,6 @@ if [ "${RP_RESULT}" != "0" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make a symbolic link to help with interactive use
|
|
||||||
if [[ "${PYTHON_MAJOR_VERSION}" == "3.9" ]]; then
|
|
||||||
/bin/ln -s "$PYTHON_BIN" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
|
||||||
fi
|
|
||||||
if [[ "${PYTHON_MAJOR_VERSION}" == "3.10" ]]; then
|
|
||||||
/bin/ln -s "$PYTHON_BIN" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
|
||||||
fi
|
|
||||||
if [[ "${PYTHON_MAJOR_VERSION}" == "3.11" ]]; then
|
|
||||||
/bin/cp "$TOOLSDIR/python-$PYTHON_MAJOR_VERSION}" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
|
||||||
fi
|
|
||||||
if [[ "${PYTHON_MAJOR_VERSION}" == "3.12" ]]; then
|
|
||||||
/bin/cp "$PYTHON_BIN" "$TOOLSDIR/$TYPE/payload/usr/local/bin/managed_python3"
|
|
||||||
fi
|
|
||||||
|
|
||||||
SB_RESULT="$?"
|
|
||||||
if [ "${SB_RESULT}" != "0" ]; then
|
|
||||||
echo "Failed create managed_python3 object" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# move the framework to the Python package folder
|
# move the framework to the Python package folder
|
||||||
echo "Moving Python.framework to payload folder"
|
echo "Moving Python.framework to payload folder"
|
||||||
/bin/mv "${FRAMEWORKDIR}/Python.framework" "$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework"
|
/bin/mv "${FRAMEWORKDIR}/Python.framework" "$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework"
|
||||||
@@ -286,6 +286,7 @@ SIGNED_JSONFILE
|
|||||||
PKG_RESULT="$?"
|
PKG_RESULT="$?"
|
||||||
if [ "${PKG_RESULT}" != "0" ]; then
|
if [ "${PKG_RESULT}" != "0" ]; then
|
||||||
echo "Could not sign package: ${PKG_RESULT}" 1>&2
|
echo "Could not sign package: ${PKG_RESULT}" 1>&2
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
if [ -n "$5" ]; then
|
if [ -n "$5" ]; then
|
||||||
# Notarize and staple the package
|
# Notarize and staple the package
|
||||||
|
|||||||
Reference in new issue
Block a user