[python-win32] Building win32 extensions to Python
chris botos
chris.botos at gmail.com
Thu Jun 15 13:04:38 CEST 2006
This sounds like a plan. I'll give it a try. Thanks, Paul.
Chris
On 6/15/06, Paul Moore <p.f.moore at gmail.com> wrote:
>
> On 6/15/06, Chris Botos <chris.botos at gmail.com> wrote:
> > 3) I downloaded and installed:
> > .NET Framework SDK Version 1.1
> > Visual C++ 2005 Express Edition, that first installs .NET Framework 2.0
> > (note that I could not get to a download for the 2003 version on
> > Microsoft's site and the only other download site I found was at
> > softpedia, and the download link there is broken )
>
> I've only skimmed your post briefly, but this is likely your problem.
> Python extensions cannot be built with Visual C++ 2005 (incompatible C
> runtime), so this doesn't work. You need the Visual C++ Toolkit
> Edition, but MS no longer seem to supply this :-( If you can get
> someone who has a copy to send it to you, that would be one option -
> but it's a 32MB file, and I don't know the redistribution conditions,
> it's probably not allowed, so you may have problems there).
>
> The other option is to install Mingw (from www.mingw.org), and build
> using setup.py build --compiler=mingw32. This works fine, unless your
> extension code uses MSVC specific extensions. The instructions in the
> Python docs are a little out of date, I believe. With Python 2.4, you
> shouldn't need to do anything more than install mingw, make sure gcc
> is on your path, and run setup.py as above. You can even edit the
> distutils config file (I can't remember its location offhand, sorry)
> to specify that distutils should use mingw by default.
>
> Hope this helps,
> Paul.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060615/83a65e94/attachment.htm
More information about the Python-win32
mailing list