Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2012-03-28 23:56:11 +0400
committerMitchell Stokes <mogurijin@gmail.com>2012-03-28 23:56:11 +0400
commit9391e4c4a35e656373badc01457a5670e82cb2ac (patch)
tree6df11fcc8ab16e8eeda13088077a0024063a0d0e /build_files
parentcb45d282fe0ef5798bdddb7ac984a8a662e73b20 (diff)
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.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/scons/tools/Blender.py13
1 files changed, 6 insertions, 7 deletions
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'),