osx: Fix bundled Python
This commit is contained in:
parent
c9818adfb1
commit
6964079673
|
@ -29,6 +29,9 @@
|
||||||
<data>
|
<data>
|
||||||
${prefix}/lib/python2.7/
|
${prefix}/lib/python2.7/
|
||||||
</data>
|
</data>
|
||||||
|
<data>
|
||||||
|
${prefix}/include/python2.7/pyconfig.h
|
||||||
|
</data>
|
||||||
|
|
||||||
<binary>
|
<binary>
|
||||||
${prefix}/lib/${gtkdir}/modules/*.so
|
${prefix}/lib/${gtkdir}/modules/*.so
|
||||||
|
|
|
@ -35,9 +35,9 @@ export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-2.0/gdk-pixbuf.loaders"
|
||||||
export PANGO_LIBDIR="$bundle_lib"
|
export PANGO_LIBDIR="$bundle_lib"
|
||||||
export PANGO_SYSCONFDIR="$bundle_etc"
|
export PANGO_SYSCONFDIR="$bundle_etc"
|
||||||
|
|
||||||
#export PYTHON="$bundle_contents/MacOS/python"
|
export PYTHON="$bundle_contents/MacOS/python"
|
||||||
#export PYTHONHOME="$bundle_res"
|
export PYTHONHOME="$bundle_res"
|
||||||
#export PYTHONPATH="$bundle_lib/python2.7:$bundle_lib/python2.7/site-packages"
|
export PYTHONPATH="$bundle_lib/python2.7:$bundle_lib/python2.7/site-packages"
|
||||||
|
|
||||||
export HEXCHAT_LIBDIR="$bundle_lib/hexchat/plugins"
|
export HEXCHAT_LIBDIR="$bundle_lib/hexchat/plugins"
|
||||||
|
|
||||||
|
|
|
@ -13,3 +13,7 @@ fi
|
||||||
rm -rf HexChat.app
|
rm -rf HexChat.app
|
||||||
|
|
||||||
$JHBUILD_PREFIX/bin/python $HOME/.local/bin/gtk-mac-bundler hexchat.bundle
|
$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
|
||||||
|
|
Loading…
Reference in New Issue