Sanjeet Kumar <[email protected]> wrote:

>  Hi,
> 
> We are using pylucence in an application and have compiled and build jcc
> and pylucene successfully on Debian/Ubuntu.
> 
> We now want to be able to "distribute" our application as a more or less
> self-contained zip file for use on any flavor of Linux (eg. CentOS, Redhat,
> etc.).
> It will contain our code as well as the pylucene binaries. The only external
> requirements should be that the appropriate versions of python and Java be
> installed on the user's system.
> 
> This works cleanly on a new Ubuntu system, but we had some initial problems
> with CentOS. While we debug further, the question is:

Well, yes.  I think you'll find that your zip files will be very large,
because of the number of variables here.  And note that just having
Python and Java installed isn't really enough; the user may at any time
decide to "update" Python, or install a different version of PyLucene
over the top of yours.

When I tried doing this for UpLib, I found the only reasonable thing I
could implement was to include the sources for PyLucene, and a
post-install script which figures out which Java and Python the user
has, builds them and installs them to a private location.  If you look
at the archives of this list, you'll see the traces of that effort :-).
The good news is that you can build both pkg files for Debian/Ubuntu
and RPM files for RedHat systems, using the same post-install script.

If you include your own private copies of Java and Python, you might be
able to make it work, though I found the 32-bit/64-bit issues still
perplexing.

Let me recommend EPM, too:  epmhome.org.

Bill

> 
> Will this approach work? We'd like to avoid having to compile and build JCC
> and
> pylucene on all the distributions.
> 
> We are currently using python2.5, Java 1.6, JCC 2.1 and PyLucene 2.4.0
> 
> 
> Thanks for any ideas and suggestions.
> 
> Regards
> Sanjeet kumar.

Reply via email to