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.

classification
Title: Python does not build without WITH_THREADS defined on Windows/Visual Studio
Type: Stage:
Components: Build, Windows Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, steve.dower, steveire, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-05-03 10:10 by steveire, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg292879 - (view) Author: Stephen Kelly (steveire) Date: 2017-05-03 10:10
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.
History
Date User Action Args
2022-04-11 14:58:46adminsetgithub: 74439
2017-05-05 22:18:16terry.reedysetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows
2017-05-03 10:10:00steveirecreate