1 |
On Sun, 2011-05-29 at 17:48 +0200, Andrea Arteaga wrote: |
2 |
> Dear Brian |
3 |
> Thank you for your email. Good to know that somebody is actively |
4 |
> working on this! |
5 |
> Actually what I need is the ability for the user (not root) to create |
6 |
> binary packages somewhere he can write (PKGDIR=somedir emerge -B |
7 |
> somepkg). It would also be useful to also retrieve the installable |
8 |
> packages matching a given pattern (e.g. eigen or dev-cpp/eigen or |
9 |
> >=dev-cpp/eigen-3.0.0). |
10 |
> |
11 |
> I'm starting my project using the command-line interface to emerge and |
12 |
> equery. |
13 |
|
14 |
The Dependencies.graph_depends() fix for the api return value is in the |
15 |
-0.3.0.4 release. You should use the gentoolkit python api's instead of |
16 |
parsing terminal output for equery calls. It is faster and more |
17 |
dependable than parsing terminal output which has a habit of changing. |
18 |
|
19 |
> When I feel your public_api are ready anough for my usege, I |
20 |
> will switch to it, which won't be a big deal (I hope). |
21 |
> -- |
22 |
> Cheers |
23 |
> Andrea Arteaga |
24 |
> |
25 |
|
26 |
No problem. I'll let you know when it is ready. |
27 |
|
28 |
> |
29 |
> 2011/5/23 Brian Dolbec <brian.dolbec@×××××.com>: |
30 |
> > Andrea, use the public_api branch of the portage git repo as much as |
31 |
> > possible. If there is additional functionality you need, then ask. I |
32 |
> > will gladly try to get it for you if possible. I am just now adding |
33 |
> > emerge capability to the api, so you should be able to use it later in |
34 |
> > the project for emerging. I would however set up your code to be able |
35 |
> > to run emerge from a subprocess. You should find the most common |
36 |
> > information gathering functions in the api now. They should be fairly |
37 |
> > straightforward to use. Keep in mind that the api is likely to change |
38 |
> > somewhat yet as it is used more and improved. |
39 |
> > |
40 |
> > start by creating a portage.api.settings.PortageSettings instance |
41 |
> > |
42 |
> > Hopefully it will be merged into regular portage releases by the end of |
43 |
> > this years gsoc. |
44 |
> > |
45 |
> > As for custom CFLAGS and other |
46 |
> > variables, /etc/portage/env/$CAT/$pkg/files are used for individual pkg |
47 |
> > overrides. As I've never used them I can't give you more detail about |
48 |
> > it or where to look. |
49 |
> > |
50 |
> > If you need to write to those files, I would like to establish some code |
51 |
> > in the api to standardize it and make it available for use. In the |
52 |
> > meantime you can look if the one I use in porthole is suitable. I run |
53 |
> > it as root from a terminal call or import it and use it directly the |
54 |
> > importing code has the right privileges. |
55 |
> > |
56 |
> > http://porthole.git.sourceforge.net/git/gitweb.cgi?p=porthole/porthole;a=blob;f=porthole/backends/set_config.py;h=8e78126377f8fc79fc51f9d17499df48a2e0270e;hb=HEAD |
57 |
> > |
58 |
> > And if you need to keep an internal db of all those: |
59 |
> > |
60 |
> > http://porthole.git.sourceforge.net/git/gitweb.cgi?p=porthole/porthole;a=blob;f=porthole/db/user_configs.py;h=7f1c61459f26c6856f80d02cbdfb81ac3c04d7e2;hb=HEAD |
61 |
> > |
62 |
> > -- |
63 |
> > Brian Dolbec <brian.dolbec@×××××.com> |
64 |
> > |
65 |
> |
66 |
|
67 |
|
68 |
-- |
69 |
Brian Dolbec <brian.dolbec@×××××.com> |