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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to