diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2004-07-14 21:26:04 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2004-07-14 21:26:04 +0400 |
commit | ef8254d05f52f1cd58e3eca5ff10db1a20b212ed (patch) | |
tree | c911a53fd0a16bac0877a5787eda8d0c49fb668f /SConstruct | |
parent | 512fc1d594aa2c4f31733e58c51bcf6740fd6f3c (diff) |
* Tell compilers they really need Python 2.3 when trying to SCons it all.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 86b5d72996b..cb7871fa456 100644 --- a/SConstruct +++ b/SConstruct @@ -4,6 +4,14 @@ import time import sys from distutils import sysconfig +if sys.hexversion < 0x2030000: + print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + print + print "You need at least Python 2.3 to build Blender with SCons" + print + print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + exit() + if sys.platform != 'win32': sys.stdout = os.popen("tee build.log", "w") sys.stderr = sys.stdout @@ -1314,6 +1322,13 @@ def printadd(env, target, source): def noaction(env, target, source): print "Empty action" +def DistClean(dir2clean): + """ + Do a removal of the root_build_dir the fast way + """ + print "distcleaning... %s"%dir2clean + print "done" + def BlenderDefault(target): """ The default Blender build. @@ -1533,6 +1548,7 @@ if user_options_dict['BUILD_BLENDER_PLAYER'] == 1 and user_options_dict['BUILD_G release_target = env.Alias("release", BlenderRelease('blender$PROGSUFFIX')) default_target = env.Alias("default", BlenderDefault('blender$PROGSUFFIX')) wininst_target = env.Alias("winist", BlenderNSIS('blender$PROGSUFFIX')) +distclean_target = env.Alias("distclean", DistClean(root_build_dir)) Default("default") |