Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 419c068

Browse files
committed
vc9compiler already joins ../../VC
1 parent 82b75ca commit 419c068

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,9 @@
5050
except KeyError:
5151
distutils.log.warn('You probably need Visual Studio 2010 (10.0) '
5252
'or higher')
53-
# vsvarsall.bat might not exist in %VS...CMNTOOLS% directory
54-
if not os.path.isfile(os.path.join(os.environ[vscomntools_env],
55-
'vcvarsall.bat')):
56-
os.environ[vscomntools_env] = os.path.join(
57-
os.environ[vscomntools_env],
58-
'..', '..', 'VC'
59-
)
6053
distutils.log.warn('%%%s%%=%s',
6154
vscomntools_env,
62-
os.environ[vscomntools_env])
55+
os.environ.get(vscomntools_env, ''))
6356
# Workaround http://bugs.python.org/issue4431 under Python <= 2.6
6457
if sys.version_info < (2, 7):
6558
def spawn(self, cmd):

0 commit comments

Comments
 (0)