From 9391e4c4a35e656373badc01457a5670e82cb2ac Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Wed, 28 Mar 2012 19:56:11 +0000 Subject: This does two things for cleanup builds made with SCons: 1) Removes unwanted folders from Python/lib instead of just emptying them out. 2) Removes the test folder from Python/lib. This folder contains unit tests for Python (not the unittest module itself), and is about 10~12MB. --- build_files/scons/tools/Blender.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'build_files/scons') diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index 155b4e800bb..8341d51318b 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -509,13 +509,12 @@ def WinPyBundle(target=None, source=None, env=None): print str(func) + ' failed on ' + str(path) print "Trying to remove existing py bundle." shutil.rmtree(py_target, False, printexception) - exclude_re=[re.compile('.*/test/.*'), - re.compile('^config/.*'), - re.compile('^config-*/.*'), - re.compile('^distutils/.*'), - re.compile('^idlelib/.*'), - re.compile('^lib2to3/.*'), - re.compile('^tkinter/.*'), + exclude_re=[re.compile('.*/test'), + re.compile('^test'), + re.compile('^distutils'), + re.compile('^idlelib'), + re.compile('^lib2to3'), + re.compile('^tkinter'), re.compile('^_tkinter_d.pyd'), re.compile('^turtledemo'), re.compile('^turtle.py'), -- cgit v1.2.3