
In Python 2.7/3/3/3.4, DeLune provide pre-built pthreadVC.dll and pthreadVC.lib.

If you use another version of Python, you might compile mannually, and here's referal instruction.


Install Free Compiler
=========================

Python 2.7
VCForPython27.msi
http://aka.ms/vcpython27

Python 3.3/3.4
VC 2010 SDK 
https://www.microsoft.com/en-us/download/details.aspx?id=8442

GRMSDK_EN_DVD.iso for 32-bit compilation
GRMSDKX_EN_DVD.iso for 64-bit compiles

Python 3.5
VS 2015 Community Edition
https://www.visualstudio.com/products/visual-studio-community-vs


Compile
========

In cmd prompt:

cd "C:\Program Files\Microsoft SDKs\Windows\v7.0"
cmd /V:ON /K Bin\SetEnv.Cmd /x86 /release
or cmd /V:ON /K Bin\SetEnv.Cmd /x64 /release
set DISTUTILS_USE_SDK=1
set PATH=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;%PATH%

cd D:\pthread2.9.1\pthreads.2
nmake clean VC


If error is raised fatal error LNK1123, 

In case x86, copy C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe C:\Program Files\Microsoft Visual Studio 10.0 \VC\bin\

In case x64, copy C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe C:\Program Files\Microsoft Visual Studio 10.0 \VC\bin\amd64\

