From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JC7jJ-0001MU-LV for garchives@archives.gentoo.org; Tue, 08 Jan 2008 06:14:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C3E4E0903; Tue, 8 Jan 2008 06:14:28 +0000 (UTC) Received: from smtp3.ihug.co.nz (smtp3.ihug.co.nz [203.109.136.103]) by pigeon.gentoo.org (Postfix) with ESMTP id 2379BE0903 for ; Tue, 8 Jan 2008 06:14:28 +0000 (UTC) Received: from cust.filter5.content.ihug.net.nz (smtp.mailfilter5.ihug.co.nz) [10.80.50.5] by smtp3.ihug.co.nz with esmtp (Exim 4.60 #1 (Debian); Ihug conf #192) id 1JC7jG-0004e8-1O; Tue, 08 Jan 2008 19:14:26 +1300 Ironport-Content-Filter: send-to-smtp Received: from 203-173-169-221.dsl.dyn.ihug.co.nz (HELO [10.1.1.3]) ([203.173.169.221]) by smtp.mailfilter5.ihug.co.nz with ESMTP; 08 Jan 2008 19:14:25 +1300 Message-ID: <478314A1.5060502@gentoo.org> Date: Tue, 08 Jan 2008 19:13:53 +1300 From: Alistair Bush User-Agent: Thunderbird 2.0.0.9 (X11/20071118) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] javatoolkit: new project layout References: <477F7510.7020505@gentoo.org> <20080105123126.GG7944@gentoo.org> <477FF6B9.6020708@gmail.com> <20080107201921.GF21604@gentoo.org> In-Reply-To: <20080107201921.GF21604@gentoo.org> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 569a7c6d-aae2-420d-a0b6-c9881c74b860 X-Archives-Hash: 168b3400909b59145a398375ab1629cc Fabian Groffen wrote: > 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. > How about we just remove it, my plan was to have all modules in site_packages, which negates this? -- gentoo-java@lists.gentoo.org mailing list