[Scons-users] Syntax highlighting and error checking in scons files

Bobby Casey beecee808 at gmail.com
Tue Nov 8 11:00:16 EST 2016


I'm wondering how others handle syntax highlighting, pep8, etc in
scons files.  I have seen the wiki page in IDE integration
(https://bitbucket.org/scons/scons/wiki/IDEIntegration), which is
helpful, but that isn't really comprehensive.

I set my editor (emacs) up to consider any files named `SCon*` or
`*.scons` to be python files, which works out pretty well except that
it pep8 (or pyflakes or whatever) throws a fit about all the
"undefined symbols".  The effect of this is that anything that scons
defines (Environment, SConscript, Default, etc) appears to be an
error.  I can turn error checking off but that doesn't feel like the
right solution.  I can create dummy definitions to "trick" the tools
but that feels worse.

How are others dealing with this?

Thanks in advance


More information about the Scons-users mailing list