From e8ccc5f53e8f69b59fbc153a783158a34ca6d1ea Mon Sep 17 00:00:00 2001 From: macmule Date: Thu, 17 Jun 2021 10:25:43 -0700 Subject: [PATCH] Update build_python_framework.sh (#1096) Corrects the Python.framework path, and end of the script. Before: ``` Verifying Universal2 builds... 182 libraries (*.so and *.dylib) found in the framework; only 90 are universal! The following libraries are not universal: find: Python.framework: No such file or directory ``` After: ``` Verifying Universal2 builds... 182 libraries (*.so and *.dylib) found in the framework; only 90 are universal! The following libraries are not universal: /Users/ben/Git/munki/Python.framework/Versions/3.9/lib/python3.9/site-packages/StoreKit/_StoreKit.abi3.so: Mach-O 64-bit bundle x86_64 ``` --- code/tools/build_python_framework.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/tools/build_python_framework.sh b/code/tools/build_python_framework.sh index 62ac00ac..1e09c5aa 100755 --- a/code/tools/build_python_framework.sh +++ b/code/tools/build_python_framework.sh @@ -66,7 +66,7 @@ UNIVERSAL_COUNT=$(find "${MUNKIROOT}/Python.framework" -name "*.so" -or -name "* if [ "$LIB_COUNT" != "$UNIVERSAL_COUNT" ] ; then echo "$LIB_COUNT libraries (*.so and *.dylib) found in the framework; only $UNIVERSAL_COUNT are universal!" echo "The following libraries are not universal:" - find Python.framework -name "*.so" -or -name "*.dylib" | xargs file | grep -v "2 architectures" | grep -v "(for architecture" + find "${MUNKIROOT}"/Python.framework -name "*.so" -or -name "*.dylib" | xargs file | grep -v "2 architectures" | grep -v "(for architecture" STATUS=1 fi