[pypy-dev] supporting new libraries

Terrence Cole list-sink at trainedmonkeystudios.org
Thu Jul 30 02:59:13 CEST 2009


On Wed, 2009-07-29 at 16:38 +0200, Vincent Legoll wrote:
> Hello,
> 
> I would like to know how hard it is to support new libraries,
> for example (probably far from the simplest, but would certainly
> be cool to have - kind) pygtk (+pygobject, etc...)

I think that pygtk/pygobject are generated mostly automatically through
glib introspect scripts.  If so, it would be on the easy side of a hard
problem.

> Could someone help in finding what would be needed to get
> that one(s) working ? Maybe with an approximate estimation
> of the difficulty of each step, or what kind of required knowledge
> to have.

> In case it would be too early to attempt such project, a slight
> explanation of what are the blocking points.
> 
> That kind of information could (should ?) be added to wiki or FAQ,
> as a honey-pot for new contributors...
> 
> The help could simply be a pointer to the obvious documentation
> that I managed to miss

I think pypy/doc/rffi.txt is what you are looking for, but I could be
completely off base since I have not done anything like this myself as
of yet.

> user at host:~/repo/svn/pypy-trunk/pypy/translator/goal$ ./pypy-c -c 'import pygtk'
> Traceback (most recent call last):
>   File "?", line 33, in run_toplevel
>   File "?", line 349, in run_it
>   File "<string>", line 1, in <module>
> ImportError: No module named pygtk
> 

Terrence




More information about the Pypy-dev mailing list