lxml 3.3.0 cannot be built on Windows with Visual Studio 2008
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
The official python.org build of Python 2.7 is compiled with Microsoft Visual Studio 2008. Therefore it would seem that for best compatibility all C extension modules should be compiled with the same Visual Studio version.
Unfortunately lxml 3.3.0 uses <stdint.h>, which is part of the C99 standard and not supported by VS 2008.
This breaks automated winbot.zope.org builds, which would otherwise build Windows installers and eggs and upload them to PyPI for the convenience of all Windows lxml users :(
Here's the build log:
http://
The relevant bit is:
c:\temp\
http:// stackoverflow. com/questions/ 126279/ c99-stdint- h-header- and-ms- visual- studio has some possible workarounds, e.g.
#ifdef _MSC_VER
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#endif