<binary dest="${bundle}/Contents/MacOS">
${prefix}/bin/python3
</binary>
In order to get python3 into ${prefix}/bin/python3 my understanding is that I need to run
jhbuild build python3
When I run this, the build process errors with:
DYLD_LIBRARY_PATH=/Users/stewarthamblin/gtk/source/Python-3.4.3 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
/bin/sh: line 1: 3587 Killed: 9 DYLD_LIBRARY_PATH=/Users/stewarthamblin/gtk/source/Python-3.4.3 ./python.exe -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1
*** Error during phase build of python3: ########## Error running make -j 2 *** [3/3]
I did previously run
jhbuild build python
which installed python2.7, successfully. It created ${prefix}/bin/python2. I had thought that maybe there was some conflict in having installed this first, so I did run jhbuild uninstall python and jhbuild clean python, both of which ran without error but did not resolve the issue with installing python3.
Has anyone successfully bundled an app with Python 3 and GTK3? The examples with gtk-mac-bundler have a PyGTK example and a GTK3 example, but nothing with Python 3 and PyGObject. I'm not very familiar with Gtk or OSX, so any help would be greatly appreciated.