Skip to content

Commit

Permalink
#4408 py2app does not package cffi properly
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 10, 2024
1 parent 9734e63 commit 3398f9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions osx/make-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ echo "py2app forgets AVFoundation, do it by hand:"
rsync -rplogt ${JHBUILD_PREFIX}/lib/python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION}/site-packages/AVFoundation ./dist/xpra.app/Contents/Resources/lib/python${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION}/
echo "fixup pkg_resources.py2_warn and gi: force include the whole packages"
if [ "${PYTHON_MAJOR_VERSION}" == "3" ]; then
MODULES="pkg_resources gi"
MODULES="pkg_resources gi cffi"
else
MODULES="pkg_resources"
MODULES="pkg_resources cffi"
fi
for m in $MODULES; 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(_cffi_backend.__file__)"`
cp $mpath ./dist/xpra.app/Contents/Resources/lib/python3.${PYTHON_MINOR_VERSION}/lib-dynload/
echo "OK"
popd

Expand Down

0 comments on commit 3398f9c

Please sign in to comment.