[Scons-users] Seeking help getting scons up on windows with MinGW

Evan Driscoll driscoll at cs.wisc.edu
Wed Jun 20 00:11:32 EDT 2012


On Tuesday, June 19, 2012 08:58:37 PM M Busche wrote:

> Now I don't think I should be attempting to run scons.bat from a MinGW shell

> prompt.


Ah. I think I've run into the same problem with Cygwin. It works in reverse
too: if you install the {Cygwin,MinGW} Python and Scons, you can't run it
directly from cmd.exe; if you install the Windows version of Python and Scons,
you can't run it directly from Bash.


> I suppose I could attempt to

> write a small scons shell script to turn around and invoke the above.

> Snooping around on my ubuntu box, I see scons there is indeed a shell

> script (and not a trivial one at all!)

>

> OK, I think I'll stop there and let someone tell me what I'm doing wrong.


That's more or less what I've done, to be honest. I don't know for sure there
isn't a better way, but that's the best one I know.

(Actually I did it even more convoluted: my scons Bash wrapper actually runs
'cmd /c scons.bat $@' or something like that. Tweak it a bit to make it
syntactically correct. And when I've done it the other way, I've written an
scons.bat that calls 'bash -c scons %*' or whatever. I like your way better.)

Evan



More information about the Scons-users mailing list