Skip to content

Commit

Permalink
#4408 py2app does not package cffi properly
Browse files Browse the repository at this point in the history
so we have to handle it manually
  • Loading branch information
totaam committed Nov 10, 2024
1 parent b3c67e1 commit be3f3ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packaging/MacOS/make-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,14 @@ if [ "$?" != "0" ]; then
fi
echo "py2app forgets AVFoundation, do it by hand:"
rsync -rplogt ${JHBUILD_PREFIX}/lib/python3.${PYTHON_MINOR_VERSION}/site-packages/AVFoundation ./dist/xpra.app/Contents/Resources/lib/python3.${PYTHON_MINOR_VERSION}/
echo "fixup pkg_resources.py2_warn and gi: force include the whole packages"
for m in pkg_resources gi; do
echo "fixup pkg_resources.py2_warn, gi, cffi: force include the whole packages"
for m in pkg_resources gi cffi; do
mpath=`python3 -c "import os;import $m;print(os.path.dirname($m.__file__))"`
cp -r $mpath ./dist/xpra.app/Contents/Resources/lib/python3.${PYTHON_MINOR_VERSION}/
done
mpath=`python3 -c "import _cffi_backend;print($m.__file__)"`
cp $mpath ./dist/xpra.app/Contents/Resources/lib/python3.${PYTHON_MINOR_VERSION}/lib-dynload/

echo "OK"
popd
echo "py2app forgets uvloop._noop"
Expand Down

0 comments on commit be3f3ec

Please sign in to comment.