Red Hat Bugzilla – Bug 167621
Review Request: PyCairo - Python bindings for Cairo
Last modified: 2007-11-30 17:11:13 EST
Spec Name or Url: http://www.spacecentre.se/jacob/pycairo/pycairo.spec
SRPM Name or Url: http://www.spacecentre.se/jacob/pycairo/pycairo-1.0.0-1.src.rpm
Description: Python bindings for Cairo.
Since this is my first package I am seeking a sponsor.
PyCairo has 3 optional libraries it checks for when configuring:
* Numeric Support
This module is was introduced because PyGTK (for a while) lacked a
method for creating a Cairo-context from a GtkDrawable. PyGTK 2.8.0
handles this now, so this module is deprecated now I believe.
Running configure gives me:
checking for libsvg-cairo >= 0.1.6...
I haven't figured out where this library lives, but I don't see
it in any of the Fedora repos (it is not librsvg2). I haven't
found a flag for configure to disable it.
This is handled by BuildRequire:ing python-numeric.
Currently I'm just using "./configure" without flags.
I don't "--without-pygtk", cause I am not sure if its
necessary. Numeric support is also handled, and that
leaves libsvg-support. Anyone got any ideas?
Note: I can't actually sponsor anyone, being rather new myself.
- Shouldn't the package name be pycairo, in keeping with upstream?
- pygtk is pretty much always installed on a Fedora system - the configuration
tools are mostly written in Python. Just BuildRequire: on pygtk2-devel
Hope that helps! Will look at the package later today - not in front of a Linux
box right now.
The package is really called "pycairo", not "PyCairo", I just wrote PyCairo
for the inital package submission message to FE.
I'm not sure pygtk2 always gets installed, for instance if you do a "minimal"
install, haven't verified this though.
$ rpm -q --whatrequires pygtk2
on any system you have to hand. Most of the system-config-* tools use it, as do
hwbrowser and switchdesk-gui. I'd have no qualms about including pygtk2 support
I just did reinstall of FC4 minimal install, no gtk2/pygtk2 gets installed
, also for instance system-config-display requires pygtk2 and gtk
(rpm -q --requires system-config-display), so keeping it in pycairo
seems like a good idea to me at least.
(In reply to comment #3)
> I'm not sure pygtk2 always gets installed, for instance if you do a "minimal"
> install, haven't verified this though.
I would suspect it does not always get installed - gtk2 is an X11 library,
installs without X11 won't have it.
jrb (Jonathan Blandford I think) has already imported pycairo into core, so this
bug is redundant now, so I'll close it soon.