scripts: Handle gst-python in gst-uninstalled

https://bugzilla.gnome.org/show_bug.cgi?id=709082
This commit is contained in:
Thibault Saunier 2014-09-24 10:11:54 +02:00
parent 188bec75e6
commit f285526de6

View file

@ -181,8 +181,10 @@ export GST_PLUGIN_SCANNER=$GST/gstreamer/libs/gst/helpers/gst-plugin-scanner
# this still doesn't make it work for the uninstalled case, since man goes
# look for a man directory "nearby" instead of the directory I'm telling it to
export MANPATH=$GST/gstreamer/tools:$GST_PREFIX/share/man:$MANPATH
pythonver=`python -c "import sys; print (sys.version[:3])"`
export PYTHONPATH=$GST/gst-python:$GST_PREFIX/lib/python$pythonver/site-packages${PYTHONPATH:+:$PYTHONPATH}
if [ -z "$PYTHON" ]; then PYTHON="python"; fi
pythonver=`$PYTHON -c "import sys; print (sys.version[:3])"`
pythonsites=`$PYTHON -c "import site; print(':'.join(site.getsitepackages()))"`
export PYTHONPATH="${PYTHONPATH}:${pythonsites}:${GST}/gst-python"
# clutter-gst
export PKG_CONFIG_PATH=$GST/clutter-gst:$PKG_CONFIG_PATH