File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ M1N1="$PWD/m1n1"
1313ARTWORK=" $PWD /artwork"
1414AFW=" $PWD /asahi_firmware"
1515SRC=" $PWD /src"
16+ VENDOR=" $PWD /vendor"
1617DL=" $PWD /dl"
1718PACKAGE=" $PWD /package"
1819RELEASES=" $PWD /releases"
@@ -64,10 +65,15 @@ mkdir -p "$PACKAGE/Frameworks/Python.framework"
64657z x -so " $DL /$PYTHON_PKG " Python_Framework.pkg/Payload | zcat | \
6566 cpio -i -D " $PACKAGE /Frameworks/Python.framework"
6667
67- echo " Slimming down Python..."
6868
6969cd " $PACKAGE /Frameworks/Python.framework/Versions/Current"
7070
71+ echo " Copying vendored libffi into Python framework..."
72+
73+ cp -P " $VENDOR " /libffi/* lib/
74+
75+ echo " Slimming down Python..."
76+
7177rm -rf include share
7278cd lib
7379rm -rf -- tdb* tk* Tk* libtk* * tcl*
@@ -76,6 +82,7 @@ rm -rf test ensurepip idlelib
7682cd lib-dynload
7783rm -f _test* _tkinter*
7884
85+
7986echo " Copying certificates..."
8087
8188certs=" $( python3 -c ' import certifi; print(certifi.where())' ) "
You can’t perform that action at this time.
0 commit comments