summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-04-19 10:01:54 -0400
committerEliot Horowitz <eliot@10gen.com>2012-04-19 10:01:54 -0400
commitb682f1071a3c5febd8e4d122187635b2548b882e (patch)
tree5f3d71cce6b7e5ce99118cc30e707cdcae2238dc /SConstruct
parentadbd9e45e3398f6683a37ac00fa56678fcb736c4 (diff)
downloadmongo-b682f1071a3c5febd8e4d122187635b2548b882e.tar.gz
python on windows doesn't support uname
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 7536ea21258..bba9382996c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -30,7 +30,10 @@ from buildscripts import utils
import libdeps
EnsureSConsVersion( 1, 1, 0 )
-scons_data_dir = ".scons/%s/%s" % ( os.uname()[0] , os.getenv( "HOST" , "nohost" ) )
+if "uname" in dir(os):
+ scons_data_dir = ".scons/%s/%s" % ( os.uname()[0] , os.getenv( "HOST" , "nohost" ) )
+else:
+ scons_data_dir = ".scons/%s/" % os.getenv( "HOST" , "nohost" )
SConsignFile( scons_data_dir + "/sconsign" )
DEFAULT_INSTALL_DIR = "/usr/local"