Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 399381

Summary: dev-python/pycairo-1.10.0-r1 for python3 lacks proper implementation of a few python2 methods
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch
files/pycairo-install.patch

Description Rafał Mużyło 2012-01-19 12:56:58 UTC
This regards ImageSurface.create_for_data and ImageSurface.get_data.

Both return NotImplemented in python3.

It's has been asked a few times in the last few months on cairo mailing list, but upstream seem a but unresponsive.

Latest seems to be http://lists.cairographics.org/archives/cairo/2011-December/022563.html.

This patch seems to more or less work, though it would be better if somebody tested it more thoroughly.

I filed http://bugs.freedesktop.org/show_bug.cgi?id=44935 upstream to get it tracked today, then again there was no activity in this regard since pycairo 1.10.0 release.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-03-02 21:27:36 UTC
Created attachment 304033 [details, diff]
ebuild patch

archtester pycairo # ebuild pycairo-1.10.0-r2.ebuild install

 * Compilation and optimization of Python modules for CPython 2.7 ...                                                               [ ok ]
 * Compilation and optimization of Python modules for CPython 3.2 ...                                                               [ ok ]
>>> dev-python/pycairo-1.10.0-r2 merged.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-03-02 21:29:11 UTC
Created attachment 304035 [details, diff]
files/pycairo-install.patch

Copied from the link in the Description