Pass the VS*COMNTOOLS environment variable when building the Python module

This commit is contained in:
Ray Speth 2012-01-17 04:10:23 +00:00
parent 604028d586
commit 7a30bfc9fd

View file

@ -15,6 +15,10 @@ localenv.Append(CPPPATH=[gcv('INCLUDEPY'), env['python_array_include']],
if localenv['OS'] == 'Windows':
localenv.Append(LIBPATH=pjoin(gcv('prefix'), 'libs'))
for var in ('VS80COMNTOOLS', 'VS90COMNTOOLS', 'VS100COMNTOOLS'):
if var in os.environ:
localenv[var] = os.environ[var]
make_setup = localenv.SubstFile('setup.py', 'setup.py.in')
if localenv['python_package'] == 'full':