This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils can't build extensions with VC 6
Type: Stage:
Components: Distutils Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: dcjim, theller
Priority: high Keywords:

Created on 2003-11-24 22:21 by dcjim, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
msvccompiler.py.diff theller, 2003-11-25 11:38 Patch for MSVCCompiler.
Messages (4)
msg19107 - (view) Author: Jim Fulton (dcjim) (Python triager) Date: 2003-11-24 22:21
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.
msg19108 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-11-25 07:51
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.
msg19109 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-11-25 11:38
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.
msg19110 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-11-28 19:48
Logged In: YES 
user_id=11105

Committed to trunk and release23-maint branch.
History
Date User Action Args
2022-04-11 14:56:01adminsetgithub: 39593
2003-11-24 22:21:30dcjimcreate