[New-bugs-announce] [issue30253] Python does not build without WITH_THREADS defined on Windows/Visual Studio

Stephen Kelly report at bugs.python.org
Wed May 3 06:10:00 EDT 2017


New submission from Stephen Kelly:

As there is no configuration system for python on Windows (issue30252) I tried to change pyconfig.h to comment out some lines:

 // #define NT_THREADS
 // #define WITH_THREAD

After building, I had to additionally patch 

* threadmodule.c and thread.c to exclude all content (I don't know if there is a way to exclude the file entirely with the Python build system - there should be something like that as part of a configure system).
* Wrap uses of PyThread_get_thread_ident() in ifdefs in timemodule.c. This is surprising because I would expect it to not compile on any platform without the ifdefs.

----------
components: Build
messages: 292879
nosy: steveire
priority: normal
severity: normal
status: open
title: Python does not build without WITH_THREADS defined on Windows/Visual Studio
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30253>
_______________________________________


More information about the New-bugs-announce mailing list