diff options
-rw-r--r-- | src/setup.py | 10 |
1 files changed, 10 insertions, 0 deletions
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 |