From b7a8a10d1d7debb9a0217c7c666c22f0d16a36f6 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 15 Apr 2016 13:19:24 +0300 Subject: [PATCH 1/2] fix winsdk 6.1: - mt.exe is in ''Win32 Development Tools'' - DISTUTILS_USE_SDK is required fix SDK 7.0: - mt.exe is in ''Win32 Developement Tools'' - DISTUTILS_USE_SDK is required fix winsdk 7.1: - mt.exe is in ''Windows Native Code Development\Tools'' (DISTUTILS_USE_SDK is NOT needed) --- WindowsCompilers.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/WindowsCompilers.rst b/WindowsCompilers.rst index e2df195..dda90f7 100644 --- a/WindowsCompilers.rst +++ b/WindowsCompilers.rst @@ -49,7 +49,7 @@ This is the standalone version of ''Visual C++ 10.0'' compiler, you don't need t * Uninstall ''Microsoft Visual C++ 2010 Redistribuable'' if present (all versions and architecture). If present, it can cause error on Windows SDK 7.1 installation. * Install ''[[https://www.microsoft.com/download/details.aspx?id=24872|Microsoft .NET Framework 4]]'' if not present. - * Install ''[[https://www.microsoft.com/download/details.aspx?id=8279|Microsoft Windows SDK for Windows 7 and .NET Framework 4]]''. Check ''Windows headers and libraries'' and ''Visual C++ Compilers'' options only. + * Install ''[[https://www.microsoft.com/download/details.aspx?id=8279|Microsoft Windows SDK for Windows 7 and .NET Framework 4]]''. Check ''Windows headers and libraries'', ''Visual C++ Compilers'' and ''Windows Native Code Development\Tools'' options only. * Install ''[[https://www.microsoft.com/download/details.aspx?id=4422|Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1 ]]''. This update compiler to Visual C++ 10.0 SP1. * reinstall ''[[https://www.microsoft.com/download/details.aspx?id=26999|Microsoft Visual C++ 2010 Redistribuable]]'' (In all previously installed architectures). @@ -100,7 +100,8 @@ This is the standalone version of ''Visual C++ 9.0'' compiler, you don't need to /!\ The use of ''Microsoft Visual C++ Compiler for Python 2.7'' is recommended (If you don't need to compile for ia64). See the previous paragraph for install it. * Install ''[[https://www.microsoft.com/download/details.aspx?id=25150|Microsoft .NET Framework 3.5 SP1]]'' if not present. - * Install ''[[https://www.microsoft.com/download/details.aspx?id=3138|Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1]]''. Check ''Windows headers and libraries'' and ''Visual C++ Compilers'' options only. + * Install ''[[https://www.microsoft.com/download/details.aspx?id=3138|Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1]]''. Check ''Windows headers and libraries'', ''Visual C++ Compilers'' and ''Win32 Developement Tools'' options only. + * Set the ''DISTUTILS_USE_SDK'' environment variable to 1. You have to run your commands from ''Windows SDK 7.0 Command Prompt'' (''C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.cmd'') each time you want compile with Python. By default, SetEnv.cmd use the ''x86'' architecture, use ''/x64'' or ''/ia64'' arguments for change it. @@ -111,7 +112,8 @@ This is the standalone version of ''Visual C++ 9.0'' compiler, you don't need to /!\ Windows SDK 6.1 was upgraded by Microsoft to Windows SDK 7.0. See the previous paragraph for install it. * Install ''[[https://www.microsoft.com/download/details.aspx?id=25150|Microsoft .NET Framework 3.5 SP1]]'' if not present. - * Install ''[[https://www.microsoft.com/download/details.aspx?id=11310|Windows SDK for Windows Server 2008 and .NET Framework 3.5]]''. Check ''Windows headers and libraries'' and ''Visual C++ Compilers'' options only. + * Install ''[[https://www.microsoft.com/download/details.aspx?id=11310|Windows SDK for Windows Server 2008 and .NET Framework 3.5]]''. Check ''Windows headers and libraries'', ''Visual C++ Compilers'' and ''Win32 Development Tools'' options only. + * Set the ''DISTUTILS_USE_SDK'' environment variable to 1. You have to run your commands from ''Windows SDK 6.1 Command Prompt'' (''C:\Program Files (x86)\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd'') each time you want compile with Python. By default, SetEnv.cmd use the ''x86'' architecture, use ''/x64'' or ''/ia64'' arguments for change it. -- 1.9.5.msysgit.1