[Zope3-dev] Compiling with VisualStudio .NET (aka V 7.0)

Guido van Rossum guido@python.org
Wed, 29 Jan 2003 07:37:58 -0500


> I'm hoping someone can help me out here since I'm stuck working on a 
> laptop in a foreign land with only dialup access, Python 2.2.0 (by the 
> looks of it...) and MS VS .NET ;-)
> 
> I'm trying to compile Zope 3:
> 
> Firstup, there was a use of True in setup.py. I wasn't aware Python 2.3 
> was required for Zope 3, so should that be there?

False and True were added in Python 2.2.1.  You'll have to add these
to __builtin__ in z3.py to have any chance of working.

> However, much more importantly, when I doctored that by putting 'True = 
> 1' at the top of setup.py, I then got the following error:
> 
> D:\ChrisW\LocalCVS\Zope3>python setup.py build_ext -i
> running build_ext
> building 'zodb.winlock' extension
> C:\Program Files\Microsoft Visual Studio.NET\Vc7\bin\cl.exe /c /nologo 
> /Ox /MD /
> W3 /GX -IC:\Python22\include /Tcsrc/zodb/winlock.c 
> /Fobuild\temp.win32-2.2\Relea
> se\winlock.obj
> cl : Command line warning D4029 : optimization is not available in the 
> standard
> edition compiler
> winlock.c
> src\zodb\winlock.c(25) : fatal error C1083: Cannot open include file: 
> 'windows.h
> ': No such file or directory
> error: command 'cl.exe' failed with exit status 2
> 
> Now, I remember getting a similar problem way back last year during the 
> UK sprint, but neither Jim nor myself can remember how we fixed it :-S

Find windows.h on that machine and add its directory to include_dirs
in setup.py?

--Guido van Rossum (home page: http://www.python.org/~guido/)