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.

Author kovidgoyal
Recipients kovidgoyal
Date 2015-11-28.20:10:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448741441.78.0.371130073658.issue25759@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-11-28 20:10:41kovidgoyalsetrecipients: + kovidgoyal
2015-11-28 20:10:41kovidgoyalsetmessageid: <1448741441.78.0.371130073658.issue25759@psf.upfronthosting.co.za>
2015-11-28 20:10:41kovidgoyallinkissue25759 messages
2015-11-28 20:10:40kovidgoyalcreate