[ python-Bugs-848614 ] distutils can't build extensions with VC 6

SourceForge.net noreply at sourceforge.net
Tue Nov 25 06:38:26 EST 2003


Bugs item #848614, was opened at 2003-11-24 23:21
Message generated for change (Comment added) made by theller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=848614&group_id=5470

Category: Distutils
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 6
Submitted By: Jim Fulton (dcjim)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils can't build extensions with VC 6

Initial Comment:
When trying to build Zope 3 on windows with Python 2.3.2, 
I got:

C:\Documents and
Settings\jim\Desktop\Zope3>\python23\python setup.py
build_ext
-i
running build_ext
error: Python was built with version 6 of Visual
Studio, and extensions need to
be built with the same version of the compiler, but it
isn't installed.

But I have version 6 if Visual Studio installed. I
tried this on two different machines and even tried
reinstalling Visual Studio.

Finally, I tried copying distutils from Python 2.2. 
Happily, that allowed me to compile Zope 3.


----------------------------------------------------------------------

>Comment By: Thomas Heller (theller)
Date: 2003-11-25 12:38

Message:
Logged In: YES 
user_id=11105

I've attached a patch which tries to find out whether MSVC6
is installed if the registry entries are not found.  If so,
a warnning is printed in addition to the error mentioned above:

  It seems you have Visual Studio 6 installed,
  but the expected registry settings are not present.
  You must at least run the Visual Studio GUI once
  so that these entries are created.

I do not know if DevStudio 7 has the same problem or not.

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2003-11-25 08:51

Message:
Logged In: YES 
user_id=11105

Seems this is a common mistake: you have to start the MSVC6
gui *at least once*, otherwise the needed registry entries
are not created.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=848614&group_id=5470



More information about the Python-bugs-list mailing list