[Xcb] [Bug 71419] New: xcb-proto.pc: 'pythondir' limits xcb-proto to a single version of Python

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 9 00:57:57 PST 2013


          Priority: medium
            Bug ID: 71419
          Assignee: xcb at lists.freedesktop.org
           Summary: xcb-proto.pc: 'pythondir' limits xcb-proto to a single
                    version of Python
        QA Contact: xcb at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mgorny at gentoo.org
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: Protocol
           Product: XCB

The xcb-proto.pc file lists 'pythondir' that was used during xcb-proto build,
and the c_client.py in xpyb & libxcb unconditionally add that path to sys.path.
As a result, the two latter packages work correctly only when run by the same
Python version as xcb-proto (which is not guaranteed at all) and can result in
a horrible mess otherwise.

On Gentoo, we are installing xcb-proto for all installed Python versions (that
is, in multiple site-packages directories). Sadly, this means that we either
have to null out the 'pythondir' in xcb-proto.pc or invent even worse hacks, or
otherwise any Python version would interfere with a random Python's
site-packages directory (at least leaving a mess of compiled files).

I suspect that 'pythondir' is intended to be used with non-standard install
locations. Could you then make it optional, that is use it only when Python
modules are installed to location outside of Python's sys.path? And then,
support having null 'pythondir' in c_client.py. We'd greatly appreciate.

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131109/2a2885a5/attachment.html>

More information about the Xcb mailing list