[Distutils] Re: [4suite] Re: Compiling 4Suite 0.10.2beta on Windows
Rene Liebscher
R.Liebscher@gmx.de
Mon Feb 19 07:04:02 2001
Alexandre Fayolle wrote:
>
> On Sat, 17 Feb 2001, Martin v. Loewis wrote:
>
> > > OK, let's phrase it differently. How do you build the 4Suite windows
> > > installer when time comes for a release ?
> >
> > Maybe I'm confusing something, but for PyXML, I build the installer
> > with
> >
> > python setup.py bdist_wininst
>
> OK, I misworded my question. Actually, this may be a distutils-sig
> question, so I crosspost to the distutils ML.
>
> I tried running bdist_wininst on my linux box, and this failed, because
> "distribution contains extensions and/or C libraries; must be compiled on
> a Windows 32 platform".
>
> So I switched to a Win32 box, and ran bdist_wininst, and it failed too
> because I could non find CL.EXE. What is CL.EXE? I suppose it is a
> compiler, so it is probably the MS compiler from Visual Studio. Can anyone
> confirm this? Is it possible to use mingw's gcc or cygwin's to build
> python extensions on windows?
>
You can build extensions with
Borland C++ by specifying --compiler=bcpp for the build or build_ext
command
(bdist_wininst calls intern build and install)
(You probably should create a personal configuration for your distutils
see
http://www.python.org/sigs/distutils-sig/doc/inst/sec:config-filenames.html
)
For MinGW and Cygwin in MinGW-mode it is --compiler=mingw32
For Cygwin in Cygwin-mode it is --compiler=cygwin
With --compiler=mingw32 compiled extensions run without problems on an
MSVC built Python.
Some simpler examples also worked when compiled with --compiler=cygwin
(I never tested it thorougly because I prefer not to need an additional
dll.)
Kind regards
Rene Liebscher