Gentoo Archives: gentoo-soc

From: Detlev Casanova <detlev.casanova@×××××.com>
To: gentoo-soc@l.g.o
Subject: [gentoo-soc] GSoC -- Week 7
Date: Mon, 12 Jul 2010 15:47:58
Message-Id: 201007121747.19750.detlev.casanova@gmail.com
1 If you like lists :
2
3 Finish a working version of the interpreter
4 Make the interpreter work with arguments
5 Make the interpreter work with class instances
6 Read out the new layman API
7 Solve a problem that prevents functions from being executed
8 Create an overlay C class that uses the new layman API
9 Restructure classes
10 Add some methods to Overlay, fix some warnings
11 Implement Config and DbBase
12 Add a C <-> Python Dict class and fix DbBase to take a Dict for it's config
13 argument
14 Get proper layman branch, Check what should really be implemented
15 Implement the whole LaymanAPI
16 Get the proper layman Python library and fix BareConfig constructor
17 Make tester and fix compilation issues
18
19 If you don't :
20
21 This week, I've decided that the interpreter is the best solution to execute
22 python code, especially because what's going to be used is a stable Python
23 API.
24
25 I've also written a C version of the layman API Brian Dolbec wrote earlier
26 this week. It allows doing everything you need to do with Layman :
27 add/remove/get information from/sync a layman overlay.
28
29 The C lib sources can be downloaded on my git repository :
30
31 git clone http://soc.dev.gentoo.org/~cazou/c-portage c-portage
32
33 There is no building system yet, I'm working on it but having internet
34 connexion issues does not help at all.
35
36 All you'll find in that repository is a 'src' directory. Enter it and type the
37 compile command line :
38
39 gcc -W -Wall -L/usr/lib/python2.6/ -lpython2.6 -I/usr/include/python2.6/ -o
40 tester --std=c99 -g *.c
41
42 and execute ./tester.
43
44 I you want it to work, You'll need Brian's Python layman API :
45
46 git clone http://dev.gentooexperimental.org/~dol-sen/git/layman.git
47
48 and switch to the API branch
49
50 git checkout api
51
52 (if this last one does not work, try git checkout -b api remotes/origin/api)
53
54 You must know that memory management is still crappy and not everything has
55 been tested.
56 Brian might also have pushed some updates to the code taht prevents from
57 syncing an overlay.
58
59 Documentation will come but currently, it's the very same as Brian's layman
60 API.
61
62 I also have to speak more, give more details and comment the code more, that's
63 something I tend not to do and reminding it to me is a very good idea :-)
64
65 Detlev.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-soc] Re: GSoC -- Week 7 Detlev Casanova <detlev.casanova@×××××.com>
[gentoo-soc] Re: GSoC -- Week 8 Detlev Casanova <detlev.casanova@×××××.com>