Andi Vajda <va...@apache.org> wrote:

> > Well, that's good.  What about JCC itself?  I'd like something like
> >
> >>>> import jcc
> >>>> jcc.VERSION
> > '2.5.1'
> >>>>
> >
> > Or
> >
> >>>> import jcc
> >>>> jcc.VERSION
> > (2, 5, 1)
> >>>>
> >
> > The second form would be more generally useful, I think.
>
> There only is a jcc module at runtime on Windows and then only when
> shared mode is used.

Huh?  So what's this?

% python
Python 2.5.1 (r251:54863, Feb  6 2009, 19:02:12) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'darwin'
>>> import jcc
>>>

Are you saying that jcc need not be installed for PyLucene to be
installed?  Sure, that's fine.  I'm actually thinking about the case
where jcc is being used to wrap some other library, so in that case
jcc might be there but not lucene.

> But I could also write this into config.py so
> that when JCC itself is run one also has access to the VERSION:
> 
>    >>> from jcc.config import VERSION
>    >>> VERSION
>    '2.5'
> 
> Andi..

That'll work.

Bill

Reply via email to