Adding external environment

Hanusek Tomasz <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
Hi,

I am new and I can not manage with external enviroment. I need to change some parameters inside the code and then compile this chenged code.

I have 'ready to use' scons.py, SConstruct and different files.

If I just run scons I will obtain:

'
scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>

scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 548, in <module>

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 548, in <module>
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
'
So I put into SConstruct:

import os
env = Environment(ENV = {'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv' : os.environ['C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv']})

but still it do not see Microsoft Visual Studio and I otained:

scons: warning: No installed VCs
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 20, in <module>
KeyError: 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO\x817\\COMMUNITY\\COMMON7\\IDE\\DEVENV':
  File "C:\Users\48693\Desktop\TRACE-V51262-Source\TRACE-V51262-Source\Source\SConstruct", line 549:
    env = Environment(ENV = {'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv' : os.environ['C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv']})
  File "C:\Python27\lib\os.py", line 425:
    return self.data[key.upper()]

I have python 2.7 and Visual Studio Community 2017.

All best,

Tomasz Hanusek

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.