J5’s Blog

December 7, 2010

PyGObject Introspection and JHBuild

Filed under: Gnome, Python — J5 @ 4:02 pm

When I started hacking on PyGObject Introspection I was using custom jhbuild module sets from the gnome-shell project.  This made it hard to tell people how to set up their own build roots.  With the new GNOME module reorg I decided to try out stock jhbuild and rebuild my entire build root.  I am happy to say that the process was really easy.

You may also want to build these libraries so you have something to work with:

  • gtk+
  • gstreamer, gst-plugins-good, gst-plugins-bad
  • clutter, clutter-gtk
  • WebKit

Many thanks goes out to those who have been involved with jhbuild and the GNOME release team for making it super easy to run and test GNOME modules throughout the years.

[read this post in: ar de es fr it ja ko pt ru zh-CN ]

4 Comments

  1. Do you know where there is an explanation of what each moduleset is about?

    Comment by crf — December 9, 2010 @ 6:36 pm

  2. You have to look at the modulesets inside of jhbuild. I’m looking into doing automatic updates to the wiki from the module sets themselves but I don’t have much time to it may be awhile

    Comment by J5 — December 10, 2010 @ 3:58 pm

  3. How do we get the doc or even API of a repository. For example, I cannot find a way to list all the classes and functions in a Clutter repository.

    >>> help(Clutter) or
    >>> help(Clutter.Stage)

    yield nothing.

    pyclutter has the binding for clutter.color_from_string(), but the same function has no binding in Clutter’s gi.repository.

    Comment by Jon — December 17, 2010 @ 9:38 am

  4. @Jon

    dir(Clutter) will give you the API. It is almost 1 to 1 with the C API except there places where the API doesn’t translate well. I am working to fixing those inside of PyGI

    pyclutter is statically bound so they have some nice convenience methods. We have a way of adding those called overrides but they haven’t been done yet. The Clutter people have stated they will be moving to the GI bindings as their main bindings and will be providing overrides.

    Comment by J5 — December 17, 2010 @ 12:48 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress