From db5ac5ff9b00f9b787cab6abb0c0e1551c12d20d Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 15 Feb 2015 13:02:51 -0800 Subject: monkey patch the get_build_version() function in distutils msvccompiler.py because if it's being run on a non-windows platform it always defaults to use msvc version 6, which doesn't provide a 64 bit installer boilerplate. Switching to 9 should work with python 2.7.x --- src/setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/setup.py b/src/setup.py index a8b59a3..fb16bdd 100644 --- a/src/setup.py +++ b/src/setup.py @@ -81,6 +81,16 @@ import distutils.command.install_data import distutils.command.install_lib import distutils.command.install_scripts import distutils.command.build_scripts +import distutils.msvccompiler + +def get_build_version(): + """ monkey patch distutils msvc version if we're not on windows. + We need to use vc version 9 for python 2.7.x and it defaults to 6 + for non-windows platforms and there is no way to override it besides + monkey patching""" + return 9 + +distutils.msvccompiler.get_build_version = get_build_version _install = distutils.command.install.install _install_data = distutils.command.install_data.install_data -- cgit v0.12