Re: javatoolkit: new project layout

Alistair Bush <[email protected]>
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
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?
-- 
[email protected] mailing list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.