Message255550
The Pcbuild/readme.txt file implies that it is possible to build python 2.7.11rc1 with Visual Studio 2015 (although it is not officially supported). However, there are at least a couple of problems, that I have encountered so far:
1) timemodule.c uses timezone, tzname and daylight which are no longer defined in visual studio, as a quick hackish workaround, one can do
#if defined _MSC_VER && MSC_VER >= 1900
#define timezone _timezone
#define tzname _tzname
#define daylight _daylight
#endif
2) More serious, the code in posixmodule.c to check if file descriptors are valid no longer links, since it relies on an internal structure from microsoft ddls, __pioinfo that no longer exists. See
https://bugs.python.org/issue23524 for discussion about this in the python 3.x branch
As a quick and dirty fix one could just replace _PyVerify_fd with a stub implementation that does nothing for _MSC_VER >= 1900
However, a proper fix should probably be made. |
|
Date |
User |
Action |
Args |
2015-11-28 20:10:41 | kovidgoyal | set | recipients:
+ kovidgoyal |
2015-11-28 20:10:41 | kovidgoyal | set | messageid: <1448741441.78.0.371130073658.issue25759@psf.upfronthosting.co.za> |
2015-11-28 20:10:41 | kovidgoyal | link | issue25759 messages |
2015-11-28 20:10:40 | kovidgoyal | create | |
|