[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46920] trunk/blender/build_files/scons/ tools: scons - Added option to not remove and unpack python modules bundle every
Joshua Leung
aligorith at gmail.com
Wed May 23 05:49:43 CEST 2012
Revision: 46920
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46920
Author: aligorith
Date: 2012-05-23 03:49:42 +0000 (Wed, 23 May 2012)
Log Message:
-----------
scons - Added option to not remove and unpack python modules bundle every
compile
Modified Paths:
--------------
trunk/blender/build_files/scons/tools/Blender.py
trunk/blender/build_files/scons/tools/btools.py
Modified: trunk/blender/build_files/scons/tools/Blender.py
===================================================================
--- trunk/blender/build_files/scons/tools/Blender.py 2012-05-23 03:36:03 UTC (rev 46919)
+++ trunk/blender/build_files/scons/tools/Blender.py 2012-05-23 03:49:42 UTC (rev 46920)
@@ -869,12 +869,17 @@
lenv.AddPostAction(prog,Action(AppIt,strfunction=my_appit_print))
elif os.sep == '/' and lenv['OURPLATFORM'] != 'linuxcross': # any unix (except cross-compilation)
if lenv['WITH_BF_PYTHON']:
- if not lenv['WITHOUT_BF_INSTALL'] and not lenv['WITHOUT_BF_PYTHON_INSTALL'] and not BlenderEnvironment.PyBundleActionAdded:
+ if (not lenv['WITHOUT_BF_INSTALL'] and
+ not lenv['WITHOUT_BF_PYTHON_INSTALL'] and
+ not lenv['WITHOUT_BF_PYTHON_UNPACK'] and
+ not BlenderEnvironment.PyBundleActionAdded):
lenv.AddPostAction(prog,Action(UnixPyBundle,strfunction=my_unixpybundle_print))
BlenderEnvironment.PyBundleActionAdded = True
elif lenv['OURPLATFORM'].startswith('win') or lenv['OURPLATFORM'] == 'linuxcross': # windows or cross-compilation
if lenv['WITH_BF_PYTHON']:
- if not lenv['WITHOUT_BF_PYTHON_INSTALL'] and not BlenderEnvironment.PyBundleActionAdded:
+ if (not lenv['WITHOUT_BF_PYTHON_INSTALL'] and
+ not lenv['WITHOUT_BF_PYTHON_UNPACK'] and
+ not BlenderEnvironment.PyBundleActionAdded):
lenv.AddPostAction(prog,Action(WinPyBundle,strfunction=my_winpybundle_print))
BlenderEnvironment.PyBundleActionAdded = True
return prog
Modified: trunk/blender/build_files/scons/tools/btools.py
===================================================================
--- trunk/blender/build_files/scons/tools/btools.py 2012-05-23 03:36:03 UTC (rev 46919)
+++ trunk/blender/build_files/scons/tools/btools.py 2012-05-23 03:49:42 UTC (rev 46920)
@@ -134,7 +134,7 @@
'BF_CXX', 'WITH_BF_STATICCXX', 'BF_CXX_LIB_STATIC',
'BF_TWEAK_MODE', 'BF_SPLIT_SRC',
'WITHOUT_BF_INSTALL',
- 'WITHOUT_BF_PYTHON_INSTALL',
+ 'WITHOUT_BF_PYTHON_INSTALL', 'WITHOUT_BF_PYTHON_UNPACK',
'WITHOUT_BF_OVERWRITE_INSTALL',
'WITH_BF_OPENMP', 'BF_OPENMP', 'BF_OPENMP_LIBPATH',
'WITH_GHOST_COCOA',
@@ -519,6 +519,7 @@
(BoolVariable('BF_SPLIT_SRC', 'Split src lib into several chunks if true', False)),
(BoolVariable('WITHOUT_BF_INSTALL', 'dont install if true', False)),
(BoolVariable('WITHOUT_BF_PYTHON_INSTALL', 'dont install Python modules if true', False)),
+ (BoolVariable('WITHOUT_BF_PYTHON_UNPACK', 'dont remove and unpack Python modules everytime if true', False)),
(BoolVariable('WITHOUT_BF_OVERWRITE_INSTALL', 'dont remove existing files before breating the new install directory (set to False when making packages for others)', False)),
(BoolVariable('BF_FANCY', 'Enable fancy output if true', True)),
(BoolVariable('BF_QUIET', 'Enable silent output if true', True)),
More information about the Bf-blender-cvs
mailing list