diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-02-15 21:02:51 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-02-15 21:02:51 (GMT) |
commit | db5ac5ff9b00f9b787cab6abb0c0e1551c12d20d (patch) | |
tree | 175f964c1136e7322c0a0d06913d4de25ad24ce0 | |
parent | aaef35125935febb0fefe269870f9023e223a280 (diff) | |
download | SCons-db5ac5ff9b00f9b787cab6abb0c0e1551c12d20d.zip SCons-db5ac5ff9b00f9b787cab6abb0c0e1551c12d20d.tar.gz SCons-db5ac5ff9b00f9b787cab6abb0c0e1551c12d20d.tar.bz2 |
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
-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 |