diff --git a/kivy/tools/packaging/osx/kivy.sh b/kivy/tools/packaging/osx/kivy.sh index fee216fee..b83e99fa9 100755 --- a/kivy/tools/packaging/osx/kivy.sh +++ b/kivy/tools/packaging/osx/kivy.sh @@ -9,6 +9,8 @@ export PYTHONPATH=${SCRIPT_PATH}/kivy:${SCRIPT_PATH}/lib/sitepackages:$PYTHONPAT export DYLD_FALLBACK_LIBRARY_PATH=${SCRIPT_PATH}/lib:$DYLD_FALLBACK_LIBRARY_PATH export LD_PRELOAD_PATH=${SCRIPT_PATH}/lib:$LD_PRELOAD_PATH export GST_PLUGIN_PATH=${SCRIPT_PATH}/lib/gst-plugins:$GST_PLUGIN_PATH +export GST_PLUGIN_SCANNER=${SCRIPT_PATH}/lib/bin/gst-plugin-scanner +export GST_REGISTRY_FORK="no" # It has to be -S or pygame's egg will do some funny site magic and break eventually # That'd mean however that other libraries can't be found anymore. So if the user has diff --git a/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py b/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py index 1b50685e5..06b062b60 100644 --- a/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py +++ b/kivy/tools/packaging/pyinstaller_hooks/rt-hook-kivy.py @@ -1,5 +1,5 @@ from os.path import join, dirname -from os import environ, chdir +from os import environ, chdir, putenv import sys root = 'kivy_install' @@ -21,6 +21,7 @@ sys.path += [join(root, '_libs')] if sys.platform == 'darwin': sitepackages = join(root, '..', 'sitepackages') sys.path += [sitepackages, join(sitepackages, 'gst-0.10')] + putenv('GST_REGISTRY_FORK', 'no') environ['GST_PLUGIN_PATH'] = join(root, '..', 'gst-plugins') environ['KIVY_DATA_DIR'] = join(root, 'data')