Gentoo Archives: gentoo-portage-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [API] First steps for creating an API for portage
Date: Fri, 18 Jun 2010 07:03:17
Message-Id: 20100618063513.GV26359@gentoo.org
In Reply to: [gentoo-portage-dev] [API] First steps for creating an API for portage by "René 'Necoro' Neumann"
1 On 18-06-2010 02:08:04 +0200, René 'Necoro' Neumann wrote:
2 > In parallel (or thereafter), we build the C-bindings. The API for these
3 > bindings probably look different -- but I guess they should be
4 > implemented in terms of the library created above.
5 >
6 > By example:
7 >
8 > - Operation: get the list of categories
9 > - Python-API: portage.api.categories() : Category list
10 > - Implementation: def categories(): return ....
11 > - C-API: category * categories()
12 > - C-Implementation: some wrapper around portage.api.categories
13
14 If you want to deliver a C implementation, I'd wonder why you wouldn't
15 just make a full C implementation and create Python wrappers for them
16 instead of the other way around. Might accidentially speed up Portage,
17 and make tools like portage-utils happy.
18
19
20 --
21 Fabian Groffen
22 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-portage-dev] [API] First steps for creating an API for portage Brian Harring <ferringb@×××××.com>
Re: [gentoo-portage-dev] [API] First steps for creating an API for portage Brian Dolbec <brian.dolbec@×××××.com>