From 696407967305a24fbdf2b84b21a2e907f14d0089 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 28 Jan 2014 16:18:00 -0500 Subject: [PATCH] osx: Fix bundled Python --- osx/hexchat.bundle | 3 +++ osx/launcher.sh | 6 +++--- osx/makebundle.sh | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/osx/hexchat.bundle b/osx/hexchat.bundle index dd3dff33..58baac57 100644 --- a/osx/hexchat.bundle +++ b/osx/hexchat.bundle @@ -29,6 +29,9 @@ ${prefix}/lib/python2.7/ + + ${prefix}/include/python2.7/pyconfig.h + ${prefix}/lib/${gtkdir}/modules/*.so diff --git a/osx/launcher.sh b/osx/launcher.sh index 05b70076..61fb0276 100755 --- a/osx/launcher.sh +++ b/osx/launcher.sh @@ -35,9 +35,9 @@ export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders" export PANGO_LIBDIR="$bundle_lib" export PANGO_SYSCONFDIR="$bundle_etc" -#export PYTHON="$bundle_contents/MacOS/python" -#export PYTHONHOME="$bundle_res" -#export PYTHONPATH="$bundle_lib/python2.7:$bundle_lib/python2.7/site-packages" +export PYTHON="$bundle_contents/MacOS/python" +export PYTHONHOME="$bundle_res" +export PYTHONPATH="$bundle_lib/python2.7:$bundle_lib/python2.7/site-packages" export HEXCHAT_LIBDIR="$bundle_lib/hexchat/plugins" diff --git a/osx/makebundle.sh b/osx/makebundle.sh index 24130aa1..3a23ee70 100755 --- a/osx/makebundle.sh +++ b/osx/makebundle.sh @@ -13,3 +13,7 @@ fi rm -rf HexChat.app $JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle + +# These take up a lot of space in the bundle +echo "Cleaning up python files" +find ./HexChat.app/Contents/Resources/lib/python2.7 -name "*.pyo" -or -name "*.pyc" -delete