Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2005-03-18 Thread magoldfish
Is it possible to compile extension modules on windows platforms using
MS Visual C++ Express 2005, or Visual Studio 8?  If so, how would one
modify the instructions posted in this thread?  [assume I also have
Toolkit 2003 installed, if necessary, for msvcr71.lib]

Marcus


Mike C. Fletcher wrote:
> Martin Bless wrote:
> ...
>
> >Two things first - not to forget:
> >
> >(1) In contrast to what Mike writes I had to use a different
registry
> >key (see step 9)
> >
> >
> Which is expected (even noted on the page), particularly if you have
a
> different version of the SDKs.  The keys in the patch were extracted
> from an English Win2K Platform SDK.  Don't know of any *good* way to
> figure out the keys in a version-agnostic manner.  Suggestions
welcome...
>
> >(2) I don't now what people mean when talking about "msvcr71.lib".
> >There's no such file on my machine. BUT there IS a "msvcrt.lib" a
> >directory "C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\lib".
I
> >guess the ".\Vc7\." indicates we are talking of the expected lib.
> >Correct? I don't know.
> >
> >
> This was sloppy on my part.  msvcr71.dll is the DLL used for Visual
> Studio 7.1, we want the .lib for that version of the DLL, but as you
> note, it is actually named msvcrt.lib (same as the one for Visual
Studio
> 6.0).
>
> >Get and install the platform SDK "Windows XP SP2 SDK" (about
> >
> >
> ...
>
> >It is
>
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MicrosoftSDK\InstalledSDKs\B44C7E10-89BD-4A32-A3BF-D9D0BC4C9A05
> >
> >and it is not
> >...\63DADB24-DC99-45EB-A748-EC93AB8A7497.
> >
> >Find out about the correct key in your case and adjust the crucial
> >line 133 in msvccompiler.py:
> >
>
>freeSDK=r"SOFTWARE\Microsoft\MicrosoftSDK\InstalledSDKs\B44C7E10-89BD-4A32-A3BF-D9D0BC4C9A05"
> >
> >
> ...
> Will have to figure out how to make this work across SDK versions
somehow.
>
> Thanks for the report,
> Mike
>
> 
>   Mike C. Fletcher
>   Designer, VR Plumber, Coder
>   http://www.vrplumber.com
>   http://blog.vrplumber.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.4 / WinXP / distutils error (cookbook example)

2005-03-07 Thread magoldfish
Martin v. Löwis wrote:
> There are several solutions, but one is to install Visual Studio .NET
> 2003 (which is different from Visual Studio .NET, also referred to
> as VS.NET 2002). Microsoft managed to rename the C library (CRT)
between
> 2002 (msvcr7.dll) and 2003 (msvcr71.dll), and you need to make sure
> your extension uses the same CRT as the one used to build Python.

Thanks Martin-- you pointed me in the right direction.  I followed the
instructions at

http://www.vrplumber.com/programming/mstoolkit/index.html

to modify my distutils and development environment to use the free
Microsoft Visual C++ Toolkit Compiler 2003.  Reproducing the recipe
result was straightforward from there.

Marcus

--
http://mail.python.org/mailman/listinfo/python-list


Python 2.4 / WinXP / distutils error (cookbook example)

2005-03-07 Thread magoldfish
Hi,

I've installed Python 2.4 on Windows XP and walked through the Alex
Martelli ASPN cookbook example at:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66509

This is a recipe for a simple extension type for Python.  When I try to
build and install it, however, I get an error:

   c:\temp\el>python setup.py install
   running install
   running build
   running build_ext
   error: The .NET Framework SDK needs to be installed before
   building extensions for Python.

I have Visual Studio .NET Professional installed.

Can anyone point me in the right direction?

Thanks!
Marcus

-- 
http://mail.python.org/mailman/listinfo/python-list