Re: building pylucene with mingw

2010-03-21 Thread Bill Janssen
Andi Vajda wrote: > > On Mar 20, 2010, at 18:41, Bill Janssen wrote: > > > Andi, > > > > Do you run what's called these days a continuous integration server? > > We > > use Hudson to continuously test UpLib, and find it very handy. I > > presume > > the ASF has such a setup somewhere. Since

Re: building pylucene with mingw

2010-03-20 Thread Andi Vajda
On Mar 20, 2010, at 18:41, Bill Janssen wrote: Andi, Do you run what's called these days a continuous integration server? We use Hudson to continuously test UpLib, and find it very handy. I presume the ASF has such a setup somewhere. Since you've already got a set of tests for pylucen

Re: building pylucene with mingw

2010-03-19 Thread Andi Vajda
On Fri, 19 Mar 2010, Bill Janssen wrote: Bill Janssen wrote: Andi Vajda wrote: On Thu, 18 Mar 2010, Bill Janssen wrote: Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib file when using mingw32. You might need to change the platform test there to include the 'm

Re: building pylucene with mingw

2010-03-19 Thread Andi Vajda
On Fri, 19 Mar 2010, Bill Janssen wrote: Bill Janssen wrote: But that just gives you "jcc/jcc.lib". It's the path that's interesting. Andi, why are you putting it in the "jcc" subdirectory? Shouldn't it be in the same place the jcc.dll file is? I see that the generated code for jcc thin

Re: building pylucene with mingw

2010-03-19 Thread Bill Janssen
Bill Janssen wrote: > Andi Vajda wrote: > > > > > On Thu, 18 Mar 2010, Bill Janssen wrote: > > > > > Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib > > > file when using mingw32. > > > > You might need to change the platform test there to include the 'mingw32' > >

Re: building pylucene with mingw

2010-03-19 Thread Bill Janssen
Bill Janssen wrote: > Bill Janssen wrote: > > > I see some code in distutils.cygwinccompiler that seems to point the > > way. In the twisted world of Distutils/Setuptools, the way you address > > issues like this is to generate a subclass of, in this case, > > distutils.cygwincompiler.Mingw32C

Re: building pylucene with mingw

2010-03-19 Thread Bill Janssen
Bill Janssen wrote: > I see some code in distutils.cygwinccompiler that seems to point the > way. In the twisted world of Distutils/Setuptools, the way you address > issues like this is to generate a subclass of, in this case, > distutils.cygwincompiler.Mingw32CCompiler, and then monkeypatch > d

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Mar 18, 2010, at 18:18, Bill Janssen wrote: Andi Vajda wrote: On Thu, 18 Mar 2010, Bill Janssen wrote: Andi Vajda wrote: If you don't, then just kwds["extra_link_args"] = lflags is done. I've still got to manually copy the .lib file in order to build PyLucene, but otherwise it s

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Andi Vajda wrote: > > On Thu, 18 Mar 2010, Bill Janssen wrote: > > > Andi Vajda wrote: > > > If you don't, then just kwds["extra_link_args"] = lflags is done. > >> > >>> I've still got to manually copy the .lib file in order to build > >>> PyLucene, but otherwise it seems to work. I'm wo

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Andi Vajda wrote: If you don't, then just kwds["extra_link_args"] = lflags is done. I've still got to manually copy the .lib file in order to build PyLucene, but otherwise it seems to work. I'm working on getting the .lib file automatically in the

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Andi Vajda wrote: > >> If you don't, then just kwds["extra_link_args"] = lflags is done. > > > I've still got to manually copy the .lib file in order to build > > PyLucene, but otherwise it seems to work. I'm working on getting the > > .lib file automatically in the right place. > > Yes, that's

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Andi Vajda wrote: On Thu, 18 Mar 2010, Bill Janssen wrote: Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib file when using mingw32. You might need to change the platform test there to include the 'mingw32' value or add th

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Andi Vajda wrote: > > On Thu, 18 Mar 2010, Bill Janssen wrote: > > > Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib > > file when using mingw32. > > You might need to change the platform test there to include the 'mingw32' > value or add the specific code to do this

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib file when using mingw32. You might need to change the platform test there to include the 'mingw32' value or add the specific code to do this next to the 'win32' case. If you do

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Andi Vajda wrote: On Thu, 18 Mar 2010, Bill Janssen wrote: Ah! "--compiler mingw32", instead of "--compiler=mingw32". Great, thanks. This is all coming back to me (slowly)... I think this is something else that JCC should remember and apply aut

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Andi Vajda wrote: > > On Thu, 18 Mar 2010, Bill Janssen wrote: > > > Ah! "--compiler mingw32", instead of "--compiler=mingw32". > > > > Great, thanks. This is all coming back to me (slowly)... > > > > I think this is something else that JCC should remember and apply > > automatically. What d

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Hmmm, setuptools doesn't seem to know to automatically build the jcc.lib file when using mingw32. Bill

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Ah! "--compiler mingw32", instead of "--compiler=mingw32". Great, thanks. This is all coming back to me (slowly)... I think this is something else that JCC should remember and apply automatically. What do you think? Remember how ? from what ? You

Re: building pylucene with mingw

2010-03-18 Thread Bill Janssen
Ah! "--compiler mingw32", instead of "--compiler=mingw32". Great, thanks. This is all coming back to me (slowly)... I think this is something else that JCC should remember and apply automatically. What do you think? Suppose I build a Windows installer for JCC with mingw32. Should that work w

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: OK, now I'm stymied by PyLucene itself. /c/Python26/python.exe -m jcc.__main__ --shared ... --build needs to know that we're using the mingw32 compiler. It doesn't seem to remember it, which I guess is the right solution, so I wind up with the same p

building pylucene with mingw

2010-03-18 Thread Bill Janssen
OK, now I'm stymied by PyLucene itself. /c/Python26/python.exe -m jcc.__main__ --shared ... --build needs to know that we're using the mingw32 compiler. It doesn't seem to remember it, which I guess is the right solution, so I wind up with the same problem: error: Unable to find vcvarsall