Created
May 5, 2015 23:29
-
-
Save elieux/fd63e62fda6a05778004 to your computer and use it in GitHub Desktop.
SCons MSYS2/mingw platform patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/lib/python2.7/site-packages/SCons/Platform/msys.py.orig 2014-11-04 23:23:28.000000000 +0100 | |
+++ /usr/lib/python2.7/site-packages/SCons/Platform/msys.py 2015-05-06 01:27:32.333448600 +0200 | |
@@ -39,6 +39,12 @@ | |
posix.generate(env) | |
env['ENV']['PATH'] = os.getenv('PATH') | |
+ import_env = [ 'SystemDrive', 'SystemRoot', 'TEMP', 'TMP' ] | |
+ for var in import_env: | |
+ v = os.environ.get(var) | |
+ if v: | |
+ env['ENV'][var] = v | |
+ | |
env['SPAWN'] = (lambda sh, esc, cmd, args, env_param: | |
subprocess.call(['sh', '-c', ' '.join(args)])) | |
env['PROGPREFIX'] = '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment