[pylucene-dev] building a PyLucene binary release for Windows
Andi Vajda
vajda at osafoundation.org
Thu Mar 27 10:24:03 PDT 2008
On Wed, 26 Mar 2008, Andi Vajda wrote:
>
> On Mar 26, 2008, at 21:38, Bill Janssen <janssen at parc.com> wrote:
>
>> Hmmm. I need a way to pass setuptools or distutils flags through jcc,
>> I guess, just like passing linker flags through g++. In particular, I
>> need to be able to pass "--compiler=mingw32":
>
> I can add a flag for that too....
So I added support for --compiler.
About --bdist, note that this flag wasn't indispensable since --install is
getting a distribution egg made as well in the 'dist' directory. All
--install seems to be doing in addition to --bdist is install this egg.
Please note that this distribution egg is a .zip archive that must be
installed via setuptools' easy_install script.
Andi..
>
> Andi..
>
>>
>>
>> $ make bdist
>> CFLAGS="" c:/Python25/python.exe -m jcc --jar
>> lucene-java-2.3.1-638563/build/lucene-core-2.3.1-638563.jar --jar
>> lucene-java-2.3.1-638563/build/contrib/snowball/lucene-snowball-2.3.1-638563.jar
>> --jar
>> lucene-java-2.3.1-638563/build/contrib/highlighter/lucene-highlighter-2.3.1-638563.jar
>> --jar
>> lucene-java-2.3.1-638563/build/contrib/analyzers/lucene-analyzers-2.3.1-638563.jar
>> --jar
>> lucene-java-2.3.1-638563/build/contrib/regex/lucene-regex-2.3.1-638563.jar
>> --jar
>> lucene-java-2.3.1-638563/build/contrib/queries/lucene-queries-2.3.1-638563.jar
>> --jar build/jar/extensions.jar --package java.lang java.lang.System
>> java.lang.Runtime --package java.util java.text.SimpleDateFormat --package
>> java.io java.io.StringReader java.io.InputStreamReader
>> java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token
>> --exclude org.apache.lucene.queryParser.TokenMgrError --exclude
>> org.apache.lucene.queryParser.QueryParserTokenManager --exclude
>> org.apache.lucene.queryParser.ParseException --python lucene --mapping
>> org.apache.lucene.document.Document
>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties
>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
>> org.apache.lucene.search.Hits 'length:()I'
>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.3.1-638563
>> --files 1 --bdist
>> running build_ext
>> building 'lucene._lucene' extension
>> error: Python was built with Visual Studio version 7.1, and extensions need
>> to be built with the same version of the compiler, but it isn't installed.
>> make: *** [bdist] Error 1
>> $
>>
>> (Yes, I'm compiling Lucene 2.3.1 on purpose.)
>>
>> Bill
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
More information about the pylucene-dev
mailing list