1 |
On 06-01-2008 10:29:29 +1300, Alistair Bush wrote: |
2 |
[snip prefix cooperation question] |
3 |
> I believe (and hope) that the distutils src_install() will handle this. |
4 |
> Basically setup.py has a --root="${D}" option |
5 |
> |
6 |
> as in here |
7 |
> |
8 |
> distutils_src_install() { |
9 |
[snip] |
10 |
> } |
11 |
> |
12 |
> Is this acceptable? |
13 |
|
14 |
Yes pretty much. |
15 |
|
16 |
The distutils.eclass has already been ported to prefix, and works as far |
17 |
as I'm aware. That said, if it goes through the eclass, the |
18 |
installation aspect would be fine. Thanks a lot for that! |
19 |
|
20 |
I see you already use /usr/bin/env python in all the python files that I |
21 |
quickly checked, so that looks very promissing! |
22 |
|
23 |
About this line: |
24 |
sys.path.insert(0, "/usr/share/javatoolkit/pym") |
25 |
(found in buildparser, but I believe it's in more files) |
26 |
|
27 |
would it be possible to do it like we do it in Portage? |
28 |
|
29 |
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path. realpath(__file__))), "pym")) |
30 |
|
31 |
that would do the "magic" for prefix as well as that it makes |
32 |
development for you a bit easier maybe. |
33 |
|
34 |
The globs in findclass I guess we'll have to patch in the prefix case, |
35 |
though I'm wondering if that doesn't need ROOT support anyway? |
36 |
If you'd really want to make be happy you'd do a |
37 |
try: |
38 |
from portage.const import EPREFIX |
39 |
catch ImportError: |
40 |
EPREFIX = '' |
41 |
|
42 |
pkg = glob.glob(EPREFIX + '/usr/share/*/package.env') |
43 |
|
44 |
|
45 |
-- |
46 |
Fabian Groffen |
47 |
Gentoo on a different level |
48 |
-- |
49 |
gentoo-java@l.g.o mailing list |