diff --git a/setup.py b/setup.py index ec38a57b..0892f27b 100644 --- a/setup.py +++ b/setup.py @@ -50,16 +50,9 @@ except KeyError: distutils.log.warn('You probably need Visual Studio 2010 (10.0) ' 'or higher') - # vsvarsall.bat might not exist in %VS...CMNTOOLS% directory - if not os.path.isfile(os.path.join(os.environ[vscomntools_env], - 'vcvarsall.bat')): - os.environ[vscomntools_env] = os.path.join( - os.environ[vscomntools_env], - '..', '..', 'VC' - ) distutils.log.warn('%%%s%%=%s', vscomntools_env, - os.environ[vscomntools_env]) + os.environ.get(vscomntools_env, '')) # Workaround http://bugs.python.org/issue4431 under Python <= 2.6 if sys.version_info < (2, 7): def spawn(self, cmd):