From: Fabian Groffen <grobian@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] javatoolkit: new project layout
Date: Mon, 7 Jan 2008 21:19:21 +0100 [thread overview]
Message-ID: <20080107201921.GF21604@gentoo.org> (raw)
In-Reply-To: <477FF6B9.6020708@gmail.com>
On 06-01-2008 10:29:29 +1300, Alistair Bush wrote:
[snip prefix cooperation question]
> I believe (and hope) that the distutils src_install() will handle this.
> Basically setup.py has a --root="${D}" option
>
> as in here
>
> distutils_src_install() {
[snip]
> }
>
> Is this acceptable?
Yes pretty much.
The distutils.eclass has already been ported to prefix, and works as far
as I'm aware. That said, if it goes through the eclass, the
installation aspect would be fine. Thanks a lot for that!
I see you already use /usr/bin/env python in all the python files that I
quickly checked, so that looks very promissing!
About this line:
sys.path.insert(0, "/usr/share/javatoolkit/pym")
(found in buildparser, but I believe it's in more files)
would it be possible to do it like we do it in Portage?
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path. realpath(__file__))), "pym"))
that would do the "magic" for prefix as well as that it makes
development for you a bit easier maybe.
The globs in findclass I guess we'll have to patch in the prefix case,
though I'm wondering if that doesn't need ROOT support anyway?
If you'd really want to make be happy you'd do a
try:
from portage.const import EPREFIX
catch ImportError:
EPREFIX = ''
pkg = glob.glob(EPREFIX + '/usr/share/*/package.env')
--
Fabian Groffen
Gentoo on a different level
--
gentoo-java@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-01-07 20:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-05 12:16 [gentoo-java] javatoolkit: new project layout Alistair Bush
2008-01-05 12:31 ` Fabian Groffen
2008-01-05 21:29 ` Alistair Bush
2008-01-07 20:19 ` Fabian Groffen [this message]
2008-01-07 20:29 ` Petteri Räty
2008-01-07 20:42 ` Fabian Groffen
2008-01-07 23:33 ` Petteri Räty
2008-01-08 8:44 ` Fabian Groffen
2008-01-08 6:13 ` Alistair Bush
2008-01-08 8:47 ` Fabian Groffen
2008-01-09 8:49 ` Alistair Bush
2008-01-09 9:04 ` Alistair Bush
2008-01-10 5:46 ` Alistair Bush
2008-01-10 21:31 ` Vlastimil Babka
2008-01-10 23:51 ` Petteri Räty
2008-01-05 12:40 ` Vlastimil Babka
2008-01-05 21:46 ` Alistair Bush
2008-01-05 23:06 ` Alistair Bush
2008-01-05 23:21 ` Vlastimil Babka
2008-01-05 23:44 ` Petteri Räty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080107201921.GF21604@gentoo.org \
--to=grobian@gentoo.org \
--cc=gentoo-java@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox