[Bug 797011] New: uninstalled: use usercustomize, not sitecustomize
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Aug 22 16:16:57 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=797011
Bug ID: 797011
Summary: uninstalled: use usercustomize, not sitecustomize
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: mkelly at xevo.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 373427
--> https://bugzilla.gnome.org/attachment.cgi?id=373427&action=edit
patch
Currently, gst-uninstalled is using sitecustomize.py for adding gi
override tweaks. However, if the standard Python libraries come before
this file in sys.path, then sitecustomize.py will never be run because
the "import sitecustomize" done in site.py will use the standard Python
libraries instead. This can be seen by running "import sitecustomize;
print(sitecustomize.__file__)" inside the uninstalled environment, as
well as by checking gi.override.__path__ and seeing that the tweaks are
missing (and the overrides are misbehaving).
Switch to using usercustomize.py, which has no match in the standard
libraries and thus will be correctly imported.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list