Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 97162 invoked from network); 18 May 2010 22:36:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 May 2010 22:36:34 -0000 Received: (qmail 61085 invoked by uid 500); 18 May 2010 22:36:34 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 61009 invoked by uid 500); 18 May 2010 22:36:34 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 61001 invoked by uid 99); 18 May 2010 22:36:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 22:36:34 +0000 X-ASF-Spam-Status: No, hits=-0.3 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 22:36:28 +0000 Received: from [192.168.0.4] ([192.168.0.4]) (authenticated bits=0) by ovaltofu.org (8.14.3/8.14.4) with ESMTP id o4IMa2nM002339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 May 2010 15:36:04 -0700 (PDT) Date: Tue, 18 May 2010 15:37:50 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api In-Reply-To: <4BF2EFB6.80507@cheimes.de> Message-ID: References: <4BEAD7AF.5020504@semantics.de> <4BEC8E27.8010406@cheimes.de> <4BF2C2C0.30601@cheimes.de> <4BF2EFB6.80507@cheimes.de> User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 18 May 2010, Christian Heimes wrote: >> Can you suggest a patch for this ? >> It is not immediately obvious to me how to do this. > > I've attached a quick patch. Sorry for all the noise, my editor is configured > to reformat Python code. > > The patch provides a custom build_py command class for distutils / > setuptools. It writes jcc.config during the build_py phase if the file > doesn't exist or a build command is provided on the command line. I reworked your patch somewhat and integrated it. It's checked in rev 945938. I learned some distutils-fu along the way :) Thank you for the contribution ! Andi..