[pylucene-dev] Re: how to build a PyLucene egg?
Kapil Thangavelu
kapil.foss at gmail.com
Sun Mar 9 20:27:26 PDT 2008
I created the egg, by hand. To reproduce after running make..
$ cd build
$ cp _lucene/_lucene.so lucene
i hand rolled a simple setup.py in the build directory..
# setup.py text
from setuptools import setup
setup(
name = 'lucene',
version = '2.3.1',
description = ' a Python <http://www.python.org/> extension for accessing
Java Lucene <http://lucene.apache.org/java/docs/index.html>.',
url = "http://pylucene.osafoundation.org",
author = 'Andi Vajda',
author_email = 'vajda at osafoundation.org',
packages = ['lucene'],
package_dir = {'lucene': 'lucene'},
package_data = {'lucene': ['*.jar', '*.so'] },
)
#
and then setup.py bdist_egg will finish the process.
fwiw, i also updated the leopard egg, to the latest pylucene trunk,
http://kapil.objectrealms.net/dist
cheers,
kapil
On Mon, Mar 3, 2008 at 9:41 PM, Bill Janssen <janssen at parc.com> wrote:
> I'd like to package PyLucene as part of the UpLib distribution for OS
> X, and I'd like to actually build JCC and PyLucene on my machine, then
> put a binary distribution of it into OS X installer. I see that
> there's a binary for OS X, built by Kapil Thangavelu, on the Web site,
> but I don't see any instructions on how to reproduce that "egg". I
> don't see anything in the Makefile, either. What am I missing?
>
> [Later] Ah, "make compile" generates the egg. May I suggest adding an
> alias so that one may say, "make egg"?
>
> So, if I distribute the PyLucene egg, do I also need to distribute JCC?
> Is one egg somehow dependent on the other egg?
>
> Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20080309/51788b1b/attachment.htm
More information about the pylucene-dev
mailing list