Commit 2818bf30 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey
Browse files Don't use runtime location of overrides by default

If someone wants to put the overrides in a non-standard location,
they can use the --with-pygi-overrides-dir option.

The default is to put them in ${pyexecdir}/gi/overrides

Fixes make distcheck
parent 146b8cca
...@@ -101,11 +101,7 @@ AC_ARG_WITH([pygi_overrides_dir], ...@@ -101,11 +101,7 @@ AC_ARG_WITH([pygi_overrides_dir],
AC_MSG_CHECKING(for pygobject overrides directory) AC_MSG_CHECKING(for pygobject overrides directory)
if test "x$with_pygi_overrides_dir" = "x" ; then if test "x$with_pygi_overrides_dir" = "x" ; then
overrides_dir="`$PYTHON -c 'import gi; print(gi._overridesdir)' 2>/dev/null`"
# fallback if the previous failed
if test "x$overrides_dir" = "x" ; then
overrides_dir="${pyexecdir}/gi/overrides" overrides_dir="${pyexecdir}/gi/overrides"
else else
overrides_dir="$with_pygi_overrides_dir" overrides_dir="$with_pygi_overrides_dir"
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment